Re: adition to GArray



On Wed, Jun 11, 2003 at 09:27:58PM -0400, J Abelardo Gutierrez wrote:
it is to change array values in a way like a normal array, and it is:

#define g_array_change_val(a,i,v) g_array_insert_val( g_array_remove_index(a,i),i,v)

You can just use
g_array_index(...) = newvalue;

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



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