Sign in
mojo
/
mojo-tools
/
96b05c1cc252cbd1582be4b8c554e72024938f3c
/
.
/
fusl
/
src
/
string
/
wmemchr.c
blob: 2bc2c2702c928cbbf4dad9188598c4b16c05f646 [
file
] [
log
] [
blame
]
Viet-Trung Luu
96b05c1
2016-01-11 11:26:36 -0800
[
diff
] [
blame^
]
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
}