[Vala] Are htons() and atoi() somewhere ?



On Wed, 2007-10-24 at 12:46 +0200, Ed Schouten wrote:
* Xavier Bestel <xavier bestel free fr> wrote:
Hi,

it seems like I can't add a method like that:
    public int mymethod(void) {....}
instead I have to remove the void:
    public int mymethod() {....}
Otherwise valac tells me:
    error: syntax error, unexpected ), expecting get or set or identifier
Is that what's expected ?

Yes. Vala is not C. :-)

Yes, Vala is Vala, but I don't know exactely what it is and it looked
like C :) Thanks Anyway.

Now, I'd like to use atoi() and htons[] and friends. Could someone
indicate me how to do that ?

Thanks,
        Xav





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]