src/cx/compare.h

changeset 762
4523f6d42512
parent 759
475335643af4
child 786
b0ebb3d88407
equal deleted inserted replaced
761:61d5197d612b 762:4523f6d42512
210 int cx_cmp_uintptr( 210 int cx_cmp_uintptr(
211 void const *ptr1, 211 void const *ptr1,
212 void const *ptr2 212 void const *ptr2
213 ); 213 );
214 214
215 /**
216 * Compares the pointers specified in the arguments without de-referencing.
217 *
218 * @param ptr1 pointer one
219 * @param ptr2 pointer two
220 * @return -1 if ptr1 is less than ptr2, 0 if both are equal,
221 * 1 if ptr1 is greater than ptr2
222 */
223 int cx_cmp_ptr(
224 void const *ptr1,
225 void const *ptr2
226 );
227
215 #ifdef __cplusplus 228 #ifdef __cplusplus
216 } // extern "C" 229 } // extern "C"
217 #endif 230 #endif
218 231
219 #endif //UCX_COMPARE_H 232 #endif //UCX_COMPARE_H

mercurial