aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/string/wcscmp.c')
-rw-r--r--system/lib/libc/musl/src/string/wcscmp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/wcscmp.c b/system/lib/libc/musl/src/string/wcscmp.c
new file mode 100644
index 00000000..26eeee70
--- /dev/null
+++ b/system/lib/libc/musl/src/string/wcscmp.c
@@ -0,0 +1,7 @@
+#include <wchar.h>
+
+int wcscmp(const wchar_t *l, const wchar_t *r)
+{
+ for (; *l==*r && *l && *r; l++, r++);
+ return *l - *r;
+}