Files
musl/src/string/wmemchr.c

9 lines
163 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include <string.h>
#include <wchar.h>
wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
{
2011-03-17 22:38:45 -04:00
for (; n && *s != c; n--, s++);
2011-02-12 00:22:29 -05:00
return n ? (wchar_t *)s : 0;
}