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