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