Sorts an array of objects in place. It implements the quick-sort algorithm.
#include <stdlib.h>
void qsort (void *base, size_t nmemb, size_t
size, int (*compar) (const void *,
const void *));
Function Variants
This function also has variants named _qsort32 and _qsort64 for
use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using
pointer-size-specific functions.
The comparison function compar need not compare every byte, so arbitrary data might be contained in the objects in addition to the values being compared.
The order in the output of two objects that compare as equal is unpredictable.