aboutsummaryrefslogtreecommitdiff
path: root/src/string/wcschr.c
blob: c860d46e9de72cb44413a774aab6b1e98d8d96c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <wchar.h>

wchar_t *wcschr(const wchar_t *s, wchar_t c)
{
	if (!c) return (wchar_t *)s + wcslen(s);
	for (; *s && *s != c; s++);
	return *s ? (wchar_t *)s : 0;
}


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