repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix mips setjmp/longjmp fpu state on r6, related issues
[musl.git]
/
src
/
string
/
wcsrchr.c
blob
8961b9e2f8eeeebcc4ac083429ecb2309873e8bf
1
#include <wchar.h>
2
3
wchar_t
*
wcsrchr
(
const wchar_t
*
s
,
wchar_t
c
)
4
{
5
const wchar_t
*
p
;
6
for
(
p
=
s
+
wcslen
(
s
);
p
>=
s
&& *
p
!=
c
;
p
--);
7
return
p
>=
s
? (
wchar_t
*)
p
:
0
;
8
}