Depth-Studios
Welcome guest (Login / Register)
compare vector value

Definition


inline signed char compare_vector_value(void *ptr1, void *ptr2)


Description


Default function when using a sorted vector. This function is normally not used directly.


Parameters


ptr1
Poiter to an element.
ptr2
Pointer to an element to compare with.


Return Value


if ptr1 is smaller then ptr2, it will return VECTOR_COMPARE_LESS.
if ptr1 equals ptr2, it will return VECTOR_COMPARE_EQUAL.
Otherwise it will return VECTOR_COMPARE_MORE.