Re: g_list_next(foo) vs. foo->next



Hi,

Neil Zanella <nzanella gmail com> writes:

> I was just wondering whether
>
> g_list_next(foo)
>
> and
>
> foo->next
>
> are really the same or not.

Not exactly the same. Why don't you have a look at the source? There
it is in glist.h:

 #define g_list_next(list) ((list) ? (((GList *)(list))->next) : NULL)


Sven



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