Re: g_list_prepend() vs g_list_append()

On Sun, Sep 08, 2002 at 06:58:31PM +0800, James Henstridge wrote:
> By the way, if you want to efficiently append to a GList, you should 
> maintain a tail pointer.  When you want to append, g_list_append() to 
> the tail, and update the tail pointer.  There are a number of examples 
> of this in the gtk API.

Doesn't that contradict what Jonathan Blandford said about the
argument to g_list_append() having to be a pointer to
the first list element?


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