Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
string
/
wmemchr.c
blob: 2bc2c2702c928cbbf4dad9188598c4b16c05f646 [
file
] [
log
] [
blame
]
#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
;
}