diff -r deb0035635eb -r d9abf53b8397 src/utils.c --- a/src/utils.c Fri May 11 17:40:16 2018 +0200 +++ b/src/utils.c Fri May 11 18:13:54 2018 +0200 @@ -96,6 +96,12 @@ return strncmp((const char*)s1, (const char*)s2, *((size_t*) n)); } +int ucx_sstrcmp(const void *s1, const void *s2, void *data) { + sstr_t a = *(const sstr_t*) s1; + sstr_t b = *(const sstr_t*) s2; + return sstrcmp(a, b); +} + int ucx_intcmp(const void *i1, const void *i2, void *data) { int a = *((const int*) i1); int b = *((const int*) i2);