projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Improved unicode fileio support.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
wstring
/
wcsstr.c
1
#include <msvcrt/string.h>
2
3
wchar_t
*
wcsstr
(
const wchar_t
*
s
,
const wchar_t
*
b
)
4
{
5
wchar_t
*
x
;
6
wchar_t
*
y
;
7
wchar_t
*
c
;
8
x
=(
wchar_t
*)
s
;
9
while
(*
x
) {
10
if
(*
x
==*
b
) {
11
y
=
x
;
12
c
=(
wchar_t
*)
b
;
13
while
(*
y
&& *
c
&& *
y
==*
c
) {
14
c
++;
15
y
++;
16
}
17
if
(!*
c
)
18
return
x
;
19
}
20
x
++;
21
}
22
return
NULL
;
23
}