projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added a header I created a while ago when looking into irda support.
[reactos.git]
/
reactos
/
lib
/
crtdll
/
wchar
/
wcsrchr.c
1
#include <crtdll/wchar.h>
2
3
wchar_t
*
wcsrchr
(
const wchar_t
*
str
,
wchar_t
ch
)
4
{
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
}