Re: GList & g_printf()



Thomas Deschepper wrote:

Hey everybody :-)

I've manage to creat a Double-Linked List with pointers to some strings.
Is there a function or a combination of functions to print every element
of the list to STDOUT?

I was thinking of g_list_foreach() in combination with g_printf(), but I
wasn't sure...



Such a (generic) function would have to be aware of the contained type
and GList only contains a (void *)pointer..


    Jonk



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