projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use free Windows DDK and compile with latest MinGW releases.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
wstring
/
wcsrchr.c
1
#include <msvcrti.h>
2
3
4
wchar_t
*
wcsrchr
(
const wchar_t
*
str
,
wchar_t
ch
)
5
{
6
wchar_t
*
sp
=(
wchar_t
*)
0
;
7
while
(*
str
!=
0
)
8
{
9
if
(*
str
==
ch
)
10
sp
= (
wchar_t
*)
str
;
11
str
++;
12
}
13
if
(
ch
==
0
)
14
sp
= (
wchar_t
*)
str
;
15
return
sp
;
16
}