ReactOS 0.4.15-dev-7958-gcd0bb1a
wcsstr.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/wstring/wcsstr.c
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11#include <precomp.h>
12
13/*
14 * @implemented
15 */
16wchar_t * CDECL wcsstr(const wchar_t *s,const wchar_t *b)
17{
18 wchar_t *x;
19 wchar_t *y;
20 wchar_t *c;
21 x=(wchar_t *)s;
22 while (*x) {
23 if (*x==*b) {
24 y=x;
25 c=(wchar_t *)b;
26 while (*y && *c && *y==*c) {
27 c++;
28 y++;
29 }
30 if (!*c)
31 return x;
32 }
33 x++;
34 }
35 return NULL;
36}
#define NULL
Definition: types.h:112
#define CDECL
Definition: compat.h:29
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLdouble s
Definition: gl.h:2039
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
const GLubyte * c
Definition: glext.h:8905
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define c
Definition: ke_i.h:80
wchar_t *CDECL wcsstr(const wchar_t *s, const wchar_t *b)
Definition: wcsstr.c:16