adition to GArray



Hi

I have coded a small but IMHO usefull macro for GArray.  I hope it could be added to the glib tree.

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)

Thanks




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