Mon, 14 May 2018 18:13:03 +0200
renames ucx_strncmp() to ucx_cmp_strn()
src/ucx/utils.h | file | annotate | diff | comparison | revisions | |
src/utils.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/ucx/utils.h Mon May 14 18:12:14 2018 +0200 1.2 +++ b/src/ucx/utils.h Mon May 14 18:13:03 2018 +0200 1.3 @@ -153,7 +153,7 @@ 1.4 * @param n a pointer to the size_t containing the third strncmp parameter 1.5 * @return the result of strncmp(s1, s2, *n) 1.6 */ 1.7 -int ucx_strncmp(const void *s1, const void *s2, void *n); 1.8 +int ucx_cmp_strn(const void *s1, const void *s2, void *n); 1.9 1.10 /** 1.11 * Wraps the sstrcmp function.
2.1 --- a/src/utils.c Mon May 14 18:12:14 2018 +0200 2.2 +++ b/src/utils.c Mon May 14 18:13:03 2018 +0200 2.3 @@ -92,7 +92,7 @@ 2.4 return strcmp((const char*)s1, (const char*)s2); 2.5 } 2.6 2.7 -int ucx_strncmp(const void *s1, const void *s2, void *n) { 2.8 +int ucx_cmp_strn(const void *s1, const void *s2, void *n) { 2.9 return strncmp((const char*)s1, (const char*)s2, *((size_t*) n)); 2.10 } 2.11