Re: g_strsplit
- From: "Alan M. Evans" <ame1 extratech com>
- To: The Saltydog <thesaltydog gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_strsplit
- Date: Wed, 05 Oct 2005 09:10:18 -0700
On Wed, 2005-10-05 at 08:56, Alan M. Evans wrote:
/* append terminating nulls to string arrays */
g_ptr_array_add(attributes,0);
Sorry, neglected to change the variable name in that copy/pasted
example. Should have been: g_ptr_array_add(parray,0);
/* throw away GLib array bookkeeping - keep only array data */
sarray = (gchar**)parray->pdata;
g_ptr_array_free(parray,FALSE);
--
Alan M. Evans <ame1 extratech com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]