1.1 --- a/src/cx/compare.h Mon Dec 18 15:13:26 2023 +0100 1.2 +++ b/src/cx/compare.h Mon Dec 18 16:04:21 2023 +0100 1.3 @@ -212,6 +212,19 @@ 1.4 void const *ptr2 1.5 ); 1.6 1.7 +/** 1.8 + * Compares the pointers specified in the arguments without de-referencing. 1.9 + * 1.10 + * @param ptr1 pointer one 1.11 + * @param ptr2 pointer two 1.12 + * @return -1 if ptr1 is less than ptr2, 0 if both are equal, 1.13 + * 1 if ptr1 is greater than ptr2 1.14 + */ 1.15 +int cx_cmp_ptr( 1.16 + void const *ptr1, 1.17 + void const *ptr2 1.18 +); 1.19 + 1.20 #ifdef __cplusplus 1.21 } // extern "C" 1.22 #endif