afc_array_master_sort

Name

afc_array_master_sort  -- Sorts the elements in the array

Synopsis

void * afc_array_master_sort ( ArrayMaster * array_master, int (*comp) ( const void *, const void * ) );

Description

This function sorts all elements in the array using the provided comparison function. The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. If two members compare as equal, their order in the sorted array is undefined.

Inputs

array_master

Pointer to a valid afc_array_master instance.

comp

The comparison function.

Result

See Also