Re: GList



On Thu, 18 Aug 2005 09:56:10 +0200
"David Necas \(Yeti\)" <yeti physics muni cz> wrote:

On Thu, Aug 18, 2005 at 12:52:45AM -0500, Tristan Sloughter wrote:
I am using GLists and want to make sure I am freeing all the memory, and 
not twice or course.

There are three possible functions for removing an element from the list:

g_list_remove (GList *list, gconstpointer data);
g_list_remove_link (GList *list, GList *llink);
g_list_delete_link (GList *list, GList *link_);

And while their names are confusing a bit, because the only
difference between g_list_remove() and g_list_delete() is
there is no such function g_list_delete().


-- 
HuamiSoft Hubert Sokolowski
http://www.huamisoft.com/
tel. (085) 7465779
kom. +48501456743



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