 | | This function implements Quicksort, a reasonably efficient general-purpose sorting algorithm. The base parameter points to the first element of the table to be sorted; nel indicates the number of elements in the table, each of size width. The compar parameter is a pointer to a function that compares two elements of the table and returns less than, equal to, or greater than 0, depending on whether the first element is to be considered less than, equal to, or greater than the second element. | |
|