GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
about gchar **
GTK+ Forums Forum Index
->
GTK+ Programming
Author
Message
raj4u
Familiar Face
Joined: 11 Oct 2006
Posts: 10
Posted: Wed Nov 22, 2006 6:12 am
Post subject: about gchar **
how we can fing the length of the arry
example
gchar **chr;
gchar *split="wht u r doing";
chr=g_strsplit(split," ",-1);
how can find that chr contanis 3 elementss
Back to top
openldev
Never Seen the Sunlight
Joined: 21 Sep 2005
Posts: 387
Location: Fairfax, Virginia
Posted: Wed Nov 22, 2006 9:56 pm
Post subject:
Code:
(Plaintext)
1
2
3
guint i = 0;
while (chr[i] != NULL)
i++;
It would contain 4 elements with the string that you supplied btw.
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
GTK+ Forums Forum Index
->
GTK+ Programming
All times are GMT
Page
1
of
1
Powered by
phpBB
© 2001, 2005 phpBB Group
CodeBB
1.0 Beta 2
Protected by
Anti-Spam ACP