11 void qsort(void *base, long nel, long width,
13 int (*compar)(void*, void*))
18 sorts an array into nondecreasing order.
19 The first argument is a pointer to the base of the data;
20 the second is the number of elements;
21 the third is the width of an element
23 the last is the name of a comparison routine
24 to be called with pointers
25 to elements being compared.
26 The routine must return
27 an integer less than, equal to, or greater than 0
28 according as the first argument is to be considered
29 less than, equal to, or greater than the second.
31 .B /sys/src/libc/port/qsort.c