summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcoll_l.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/strcoll_l.c')
-rw-r--r--lib/libc/string/strcoll_l.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/string/strcoll_l.c b/lib/libc/string/strcoll_l.c
new file mode 100644
index 00000000000..bcd5b0f4177
--- /dev/null
+++ b/lib/libc/string/strcoll_l.c
@@ -0,0 +1,14 @@
+/* $OpenBSD: strcoll_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
+strcoll_l(const char *s1, const char *s2,
+ locale_t locale __attribute__((__unused__)))
+{
+ return strcmp(s1, s2);
+}