GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

about gchar **

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
raj4u
Familiar Face


Joined: 11 Oct 2006
Posts: 10

PostPosted: Wed Nov 22, 2006 6:12 am    Post subject: about gchar ** Reply with quote

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: 386
Location: Fairfax, Virginia

PostPosted: Wed Nov 22, 2006 9:56 pm    Post subject: Reply with quote

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:   
Post new topic   Reply to topic    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