Re: [Vala] length method



On Wed, Mar 30, 2011 at 10:18 AM, Kris Thomsen <lakristho gmail com> wrote:
ooh, nevermind...

I just wrote:

stdout.printf("%d\n", (int)"Hej".length);

Better yet, use %l in place of %d.
So you don't need to cast a long into a int.
Have a look at "man printf"



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