Re: [gnome-love] linked list sorting



On Mon, 2004-07-05 at 23:20 -0400, ethan zimmerman wrote:
I can't find any example code for sorting linked lists. Does anyone here
know of any? My main problem is is writing the my_sort() function in the
following example.  g_slist_sort(the_list, my_sort); Can anyone help?
Attached is a quicky example sorting people objects based on last name,
then first name.


Attachment: sort_people.c
Description: Text Data



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