qsort
qsort, qsort_s
Defined in header <stdlib.h> | ||
---|---|---|
void qsort( void *ptr, size_t count, size_t size, int (*comp)(const void *, const void *) ); | (1) | |
errno_t qsort_s( void *ptr, rsize_t count, rsize_t size, int (*comp)(const void *, const void *, void *), void *context ); | (2) | (since C11) |
1) Sorts the given array pointed to by
ptr
in ascending order. The array contains count
elements of size
bytes. Function pointed to by comp
is