- Function
Sort an array.
- Header
- Declaration
void __fastcall__ qsort (void* base, size_t count, size_t size, int (*compare) (const void*, const void*));- Description
qsortsorts an array according to a given compare functioncompare.baseis the address of the array,countis the number of elements,sizethe size of an element andcomparethe function used to compare the members.- Limits
- If there are multiple members with the same key, the order after calling the function is undefined.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Availability
ISO 9899
- See also
- Example
None.