about summary refs log tree commit diff
path: root/src/string/strncasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strncasecmp.c')
-rw-r--r--src/string/strncasecmp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/strncasecmp.c b/src/string/strncasecmp.c
index 24659721..3af53008 100644
--- a/src/string/strncasecmp.c
+++ b/src/string/strncasecmp.c
@@ -1,5 +1,6 @@
 #include <strings.h>
 #include <ctype.h>
+#include "libc.h"
 
 int strncasecmp(const char *_l, const char *_r, size_t n)
 {
@@ -8,3 +9,10 @@ int strncasecmp(const char *_l, const char *_r, size_t n)
 	for (; *l && *r && n && (*l == *r || tolower(*l) == tolower(*r)); l++, r++, n--);
 	return tolower(*l) - tolower(*r);
 }
+
+int __strncasecmp_l(const char *l, const char *r, size_t n, locale_t loc)
+{
+	return strncasecmp(l, r, n);
+}
+
+weak_alias(__strncasecmp_l, strncasecmp_l);