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 failure to flush stderr when fflush(0) is called
[musl.git]
/
src
/
string
/
wmemchr.c
blob
2bc2c2702c928cbbf4dad9188598c4b16c05f646
1
#include <wchar.h>
2
3
wchar_t
*
wmemchr
(
const wchar_t
*
s
,
wchar_t
c
,
size_t
n
)
4
{
5
for
(;
n
&& *
s
!=
c
;
n
--,
s
++);
6
return
n
? (
wchar_t
*)
s
:
0
;
7
}