how to free a GList filled with GStrings ?



GList *list = NULL;
int beurk = TRUE;


list = g_list_append(list, g_string_new("test1"));
list = g_list_append(list, g_string_new("test2"));

g_list_foreach(list, (GFunc)g_string_free, &beurk);

I'm looking for a better way to do that (without the beurk).
Any idea ?

By the way, does anybody know if it's possible to have an app display on two 
screens ? (two X servers on two different machines)



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