wcschr.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/wcschr.c
blob: 8dfc2f318316f84ac396d85349373f423d5fd6df (plain) (blame)
1
2
3
4
5
6
7
8
#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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月29日 05:45:48 +0000

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