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

wchar_t * wcschr(const wchar_t * s, wchar_t c)
{
	while (*s) {
		if (*s == c) {
			return (wchar_t*) s;
		}
		s++;
	}

	return NULL;
}

/*
STDC(199409)
*/