summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flstring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flstring.c b/src/flstring.c
index c6f2825d7..aacdcfd20 100644
--- a/src/flstring.c
+++ b/src/flstring.c
@@ -90,12 +90,12 @@ fl_strlcpy(char *dst, /* O - Destination string */
return (srclen);
}
+#define C_RANGE(c,l,r) ( (c) >= (l) && (c) <= (r) )
+
/**
* locale independent ascii oriented case cmp
-* returns 0 if string successfully compare, non zero otherwise
+* returns 0 if string successfully compare, -1 if s<t, +1 if s>t
*/
-#define C_RANGE(c,l,r) ( (c) >= (l) && (c) <= (r) )
-
int fl_ascii_strcasecmp(const char *s, const char *t) {
if (!s || !t) return (s!=t);
size_t sl=strlen(s), tl=strlen(t);