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