wcsspn.c\string\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/wcsspn.c
blob: 4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1 (plain) (blame)
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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 23:49:19 +0000

AltStyle によって変換されたページ (->オリジナル) /