Re: g_strsplit



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]