mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
163 B
8 lines
163 B
#include <string.h>
|
|
#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;
|
|
}
|
|
|