gqsort.h File Reference

__G_QSORT_H__

g_qsort_with_data ( gconstpointer, gint, gsize, GCompareDataFunc, gpointer )

G_BEGIN_DECLS IMPORT_C voidg_qsort_with_data(gconstpointerpbase,
ginttotal_elems,
gsizesize,
GCompareDataFunccompare_func,
gpointeruser_data
)

g_qsort_with_data: : start of array to sort : elements in the array : size of each element : function to compare elements : data to pass to

This is just like the standard C qsort() function, but the comparison routine accepts a user data argument.