summaryrefslogtreecommitdiff
path: root/src/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wcscmp.c')
-rw-r--r--src/string/wcscmp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string/wcscmp.c b/src/string/wcscmp.c
new file mode 100644
index 00000000..26eeee70
--- /dev/null
+++ b/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;
+}