Sort module


Functions

void gdsl_sort (gdsl_element_t *T, ulong N, const gdsl_compare_func_t COMP_F)
 Sort an array in place.


Function Documentation

void gdsl_sort gdsl_element_t T,
ulong  N,
const gdsl_compare_func_t  COMP_F
 

Sort an array in place.

Sort the array T in place. The function COMP_F is used to compare T's elements and must be user-defined.

Note:
Complexity: O( N log( N ) )
Precondition:
N == |T| & T != NULL & COMP_F != NULL & for all i <= N: sizeof (T[i]) == sizeof (gdsl_element_t)
Parameters:
T The array of elements to sort
N The number of elements into T
COMP_F The function pointer used to compare T's elements


Generated on Thu Jun 22 11:15:30 2006 for gdsl by  doxygen 1.4.6