wcsrchr.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/wcsrchr.c
blob: 8961b9e2f8eeeebcc4ac083429ecb2309873e8bf (plain) (blame)
1
2
3
4
5
6
7
8
#include <wchar.h>
wchar_t *wcsrchr(const wchar_t *s, wchar_t c)
{
	const wchar_t *p;
	for (p=s+wcslen(s); p>=s && *p!=c; p--);
	return p>=s ? (wchar_t *)p : 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 10:16:15 +0000

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