aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/wmemchr.c
blob: 37d69629eea37843c8c0e6c54d78f8b5ec669b10 (plain)
1
2
3
4
5
6
7
8
#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;
}