qsort (C Standard Library)

From Wikipedia, the free encyclopedia

In the C standard library, qsort is a function used to sort elements in an array.

[edit] Prototype

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

[edit] Behaviour

The contents of the array are sorted in ascending order according to a comparison function pointed to by compar.

[edit] External links