Re: [Vala] length method
- From: Luca Dionisi <luca dionisi gmail com>
- To: Kris Thomsen <lakristho gmail com>, vala-list gnome org
- Subject: Re: [Vala] length method
- Date: Wed, 30 Mar 2011 10:23:56 +0200
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]