[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Use of GString
- From: "Gustavo J. A. M. " Carneiro <gjc inescporto pt>
- To: Neil Hodge <neh attbi com>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Use of GString
- Date: 29 Jan 2003 11:03:22 +0000
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]