aboutsummaryrefslogtreecommitdiff
path: root/src/string/wmemchr.c
blob: 0196249742f5eacca365469131f895dca3f35d3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif