src/utils.c

changeset 308
d6f580621512
parent 292
d9abf53b8397
child 309
4355c6039a28
equal deleted inserted replaced
306:90b6d69bb499 308:d6f580621512
86 return ncp; 86 return ncp;
87 } 87 }
88 88
89 /* COMPARE FUNCTIONS */ 89 /* COMPARE FUNCTIONS */
90 90
91 int ucx_strcmp(const void *s1, const void *s2, void *data) { 91 int ucx_cmp_str(const void *s1, const void *s2, void *data) {
92 return strcmp((const char*)s1, (const char*)s2); 92 return strcmp((const char*)s1, (const char*)s2);
93 } 93 }
94 94
95 int ucx_strncmp(const void *s1, const void *s2, void *n) { 95 int ucx_strncmp(const void *s1, const void *s2, void *n) {
96 return strncmp((const char*)s1, (const char*)s2, *((size_t*) n)); 96 return strncmp((const char*)s1, (const char*)s2, *((size_t*) n));

mercurial