aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/wcsspn.c
blob: 4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1 (plain)
1
2
3
4
5
6
7
8
#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;
}