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

size_t wcsspn(const wchar_t *s, const wchar_t *c)
{
	const wchar_t *a;
	for (a=s; *s && wcschr(c, *s); s++);
	return s-a;
}


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