g_slist_length()?





I have a list (a GSList constructed via g_slist_alloc()).

I add five elements to the list, call
g_slist_length(list), and I get SIX.

Is there some sort of dummy/sentinel node that's getting
counted, too?  Is there a rational for this, or is it a bug?

Jimmy Ho
...........................................................
jkh@cs.brown.edu     Brown University
(401) 863-7681       Master's Candidate, Computer Science
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''




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