diff options
Diffstat (limited to 'libc-top-half/musl/src/string/wmemchr.c')
-rw-r--r-- | libc-top-half/musl/src/string/wmemchr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/string/wmemchr.c b/libc-top-half/musl/src/string/wmemchr.c new file mode 100644 index 0000000..2bc2c27 --- /dev/null +++ b/libc-top-half/musl/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; +} |