summaryrefslogtreecommitdiff
path: root/src/string/wmemchr.c
blob: 2bc2c2702c928cbbf4dad9188598c4b16c05f646 (plain) (blame)
1
2
3
4
5
6
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;
}