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

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