Re: Use of GString



On Wed, 2003-01-29 at 03:15, Neil Hodge wrote:
All:

I was reading up on the use of GString.  It seems to have some nice
convenience functions.  But how would you split a tokenized string, or
use a GString in any other function that expects gchar* as an argument? 
As follows:

GString *gstr;
gchar **splitstr;

splitstr = g_strsplit(gstr->str, "delimiter", 0);

???  Any thoughts?  Thanks.

  I think it is safe to do that. GString has a 'len' field, and can hold
'\0's inside the string, after all...


Neil


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
Gustavo João Alves Marques Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>





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