mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
9 lines
163 B
C
9 lines
163 B
C
#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;
|
|
}
|