src/utils.c

changeset 310
b09677d72413
parent 309
4355c6039a28
child 311
e1f3248576bc
equal deleted inserted replaced
309:4355c6039a28 310:b09677d72413
94 94
95 int ucx_cmp_strn(const void *s1, const void *s2, void *n) { 95 int ucx_cmp_strn(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));
97 } 97 }
98 98
99 int ucx_sstrcmp(const void *s1, const void *s2, void *data) { 99 int ucx_cmp_sstr(const void *s1, const void *s2, void *data) {
100 sstr_t a = *(const sstr_t*) s1; 100 sstr_t a = *(const sstr_t*) s1;
101 sstr_t b = *(const sstr_t*) s2; 101 sstr_t b = *(const sstr_t*) s2;
102 return sstrcmp(a, b); 102 return sstrcmp(a, b);
103 } 103 }
104 104

mercurial