diff -r 61d5197d612b -r 4523f6d42512 src/cx/compare.h --- a/src/cx/compare.h Mon Dec 18 15:13:26 2023 +0100 +++ b/src/cx/compare.h Mon Dec 18 16:04:21 2023 +0100 @@ -212,6 +212,19 @@ void const *ptr2 ); +/** + * Compares the pointers specified in the arguments without de-referencing. + * + * @param ptr1 pointer one + * @param ptr2 pointer two + * @return -1 if ptr1 is less than ptr2, 0 if both are equal, + * 1 if ptr1 is greater than ptr2 + */ +int cx_cmp_ptr( + void const *ptr1, + void const *ptr2 +); + #ifdef __cplusplus } // extern "C" #endif