Qsort
quick sort
qsort
char *base
int n
int size
int (* compfunc)
void *, void *
Description
Qsort implements the quick-sort algoritm for sortig an
arbitrary array of items.
"Base" is the address of the array of "n" items of size "size".
"Compfunc" is a pointer to a comparison routine supplied by
the user. It will be called by qsort with two pointers to
items in the array for comparison and should return an integer
which is less than, equal to, or greater than 0 where,
respectively, the first item is less than, equal to, or greater
than the second.