SYNOPSIS
#include <stdlib.h>
int heapsort(void *base, size_t nmemb, size_t size, int (compar)(const void *, const void *));
DESCRIPTION
The
The
PARAMETERS
- base
-
Points to initial element of array to be sorted.
- nmemb
-
Is the number of objects in the array.
- size
-
Is the size of each object in memory.
- compar
-
Is the sorting function to use.
RETURN VALUES
On success,
- EINVAL
-
The size parameter is 0.
- ENOMEM
-
Insufficient memory is available to implement the sort algorithm.
CONFORMANCE
4.4BSD.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
mergesort() ,qsort() ,radixsort() ,sradixsort()
PTC MKS Toolkit 10.4 Documentation Build 39.