GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 02, 2014 4:16 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: about gchar **
PostPosted: Wed Nov 22, 2006 6:12 am 
Offline
Familiar Face

Joined: Wed Oct 11, 2006 9:49 am
Posts: 10
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 9:56 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
Code:
guint i = 0;
while (chr[i] != NULL)
  i++;


It would contain 4 elements with the string that you supplied btw.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group