![]() |
compare_t | Type (Pointer) |
stdlib.h |
typedef CALLBACK short (*compare_t) (const void *elem1, const void *elem2); |
Describes a comparison function.
compare_t is a type for defining the type of a comparison function
passed to bsearch or qsort.
Note that this type is not ANSI-compliant: It should have a 'long'
return value. The reason it does not is that the strcmp
function, frequently cast to this type, returns a 'short'
value.