Function
GLibPtrArraysort_values_with_data
since: 2.76
Declaration
void
g_ptr_array_sort_values_with_data (
GPtrArray* array,
GCompareDataFunc compare_func,
gpointer user_data
)
Description
Like g_ptr_array_sort_values(), but the comparison function has an extra user data argument.
This is guaranteed to be a stable sort.
Available since: 2.76
This function is not directly available to language bindings.
Parameters
array-
Type: An array of
gpointerA
GPtrArray.The data is owned by the caller of the function. compare_func-
Type:
GCompareDataFuncA
GCompareDataFunccomparison function. user_data-
Type:
gpointerData to pass to
compare_func.The argument can be NULL.The data is owned by the caller of the function.