renames ucx_strncmp() to ucx_cmp_strn()

Mon, 14 May 2018 18:13:03 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 14 May 2018 18:13:03 +0200
changeset 309
4355c6039a28
parent 308
d6f580621512
child 310
b09677d72413

renames ucx_strncmp() to ucx_cmp_strn()

src/ucx/utils.h file | annotate | diff | comparison | revisions
src/utils.c file | annotate | diff | comparison | revisions
--- a/src/ucx/utils.h	Mon May 14 18:12:14 2018 +0200
+++ b/src/ucx/utils.h	Mon May 14 18:13:03 2018 +0200
@@ -153,7 +153,7 @@
  * @param n a pointer to the size_t containing the third strncmp parameter
  * @return the result of strncmp(s1, s2, *n)
  */
-int ucx_strncmp(const void *s1, const void *s2, void *n);
+int ucx_cmp_strn(const void *s1, const void *s2, void *n);
 
 /**
  * Wraps the sstrcmp function.
--- a/src/utils.c	Mon May 14 18:12:14 2018 +0200
+++ b/src/utils.c	Mon May 14 18:13:03 2018 +0200
@@ -92,7 +92,7 @@
     return strcmp((const char*)s1, (const char*)s2);
 }
 
-int ucx_strncmp(const void *s1, const void *s2, void *n) {
+int ucx_cmp_strn(const void *s1, const void *s2, void *n) {
     return strncmp((const char*)s1, (const char*)s2, *((size_t*) n));
 }
 

mercurial