ucx/comparator.h

changeset 91
91595a45fad6
parent 89
47f7fdbddb62
child 92
7625a8efcc97
equal deleted inserted replaced
90:ef3163857e88 91:91595a45fad6
45 * @return -1 if ptr1 is less than ptr2, 0 if both are equal, 45 * @return -1 if ptr1 is less than ptr2, 0 if both are equal,
46 * 1 if ptr1 is greater than ptr2 46 * 1 if ptr1 is greater than ptr2
47 */ 47 */
48 int ucx_ptrcmp(void *ptr1, void *ptr2, void *data); 48 int ucx_ptrcmp(void *ptr1, void *ptr2, void *data);
49 49
50 /**
51 * Compares two memory areas.
52 * @param ptr1 pointer one
53 * @param ptr2 pointer two
54 * @param n a pointer to the size_t containing the third parameter for memcmp
55 * @return the result of memcmp(ptr1, ptr2, *n)
56 */
57 int ucx_memcmp(void *ptr1, void *ptr2, void *n);
58
50 #ifdef __cplusplus 59 #ifdef __cplusplus
51 } 60 }
52 #endif 61 #endif
53 62
54 #endif /* COMPARATOR_H */ 63 #endif /* COMPARATOR_H */

mercurial