summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcasecmp_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/strcasecmp_l.c')
-rw-r--r--lib/libc/string/strcasecmp_l.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/string/strcasecmp_l.c b/lib/libc/string/strcasecmp_l.c
new file mode 100644
index 00000000000..a9543dda118
--- /dev/null
+++ b/lib/libc/string/strcasecmp_l.c
@@ -0,0 +1,21 @@
+/* $OpenBSD: strcasecmp_l.c,v 1.1 2017/09/05 03:16:13 schwarze Exp $ */
+/*
+ * Written in 2017 by Ingo Schwarze <schwarze@openbsd.org>.
+ * Released into the public domain.
+ */
+
+#include <string.h>
+
+int
+strcasecmp_l(const char *s1, const char *s2,
+ locale_t locale __attribute__((__unused__)))
+{
+ return strcasecmp(s1, s2);
+}
+
+int
+strncasecmp_l(const char *s1, const char *s2, size_t n,
+ locale_t locale __attribute__((__unused__)))
+{
+ return strncasecmp(s1, s2, n);
+}