Everything

qsort


Sort

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void*, const void *));

[Description]

This function sorts the array pointed to by base into ascending order in relation to the comparison function pointed to by compar. nmemb is the number of array elements, and size is the size of each element. The comparison function pointed to by compar is the same as the one described for bsearch.