ReactOS 0.4.15-dev-7931-gfd331f1
wcsstr.c File Reference
#include <precomp.h>
Include dependency graph for wcsstr.c:

Go to the source code of this file.

Functions

wchar_t *CDECL wcsstr (const wchar_t *s, const wchar_t *b)
 

Function Documentation

◆ wcsstr()

wchar_t *CDECL wcsstr ( const wchar_t s,
const wchar_t b 
)

Definition at line 16 of file wcsstr.c.

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
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