Re: [gnome-love] Linked list sorting



On Mon, 05 Jul 2004 23:16:35 -0400, ethan zimmerman
<ethan ethanzimmerman com> 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?

Sure, see
  http://bugzilla.gnome.org/attachment.cgi?id=31491&action=view
for an example of a list sorting function that was used in Metacity
for a while (and was removed recently simply because it was no longer
needed.


Hope that helps,
Elijah



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