|
Kanzi Graphics Engine
|
Comparator function prototypes. More...
Typedefs | |
| typedef kzInt(* | KzcComparatorWithContextFunction )(const void *first, const void *second, const void *context) |
| Comparator function with arbitrary context. More... | |
Functions | |
| kzInt | kzcCompareInts (const void *first, const void *second) |
| Comparator function for signed integers. More... | |
| kzInt | kzcCompareU32s (const void *first, const void *second) |
| Comparator function for unsigned 32 bit integers. More... | |
| kzInt | kzcCompareFloats (const void *first, const void *second) |
| Comparator function for floating points. More... | |
| kzInt | kzcComparePointers (const void *first, const void *second) |
| Comparator function for pointers. More... | |
| kzInt | kzcCompareStrings (const void *first, const void *second) |
| Comparator function for strings. More... | |
Variables | |
| KZ_HEADER_BEGIN typedef kzInt(* | KzcComparatorFunction )(const void *first, const void *second) |
| Comparator function. More... | |
Comparator function prototypes.
Comparator functions of the type kzInt compare(const void* first, const void* second) which returns 0 if first == second, negative number if first < second and positive if first > second. For integer values the comparator can be implemented simply as return first - second; to get natural ordering from small to large.
Copyright 2008-2019 by Rightware. All rights reserved.
| typedef kzInt(* KzcComparatorWithContextFunction)(const void *first, const void *second, const void *context) |
Comparator function with arbitrary context.
Same as KzcComparatorFunction with additional context parameter.
Comparator function for signed integers.
Comparator function for unsigned 32 bit integers.
Comparator function for floating points.
Comparator function for pointers.
Comparator function for strings.
| KZ_HEADER_BEGIN typedef kzInt(* KzcComparatorFunction)(const void *first, const void *second) |
Comparator function.
Returns negative integer if first < second, 0 if they are equal and positive integer if first > second. Note that the comparator must return 0 whenever first == second.