Index: fusl/src/string/wmemchr.c |
diff --git a/fusl/src/string/wmemchr.c b/fusl/src/string/wmemchr.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2bc2c2702c928cbbf4dad9188598c4b16c05f646 |
--- /dev/null |
+++ b/fusl/src/string/wmemchr.c |
@@ -0,0 +1,7 @@ |
+#include <wchar.h> |
+ |
+wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n) |
+{ |
+ for (; n && *s != c; n--, s++); |
+ return n ? (wchar_t *)s : 0; |
+} |