ReactOS 0.4.17-dev-284-g529f3c6
StrRChrW.c File Reference
#include <windef.h>
#include <winbase.h>
Include dependency graph for StrRChrW.c:

Go to the source code of this file.

Functions

WCHAR *WINAPI StrRChrW (const WCHAR *str, const WCHAR *end, WORD ch)
 

Function Documentation

◆ StrRChrW()

WCHAR *WINAPI StrRChrW ( const WCHAR str,
const WCHAR end,
WORD  ch 
)

Definition at line 7 of file StrRChrW.c.

8{
9 WCHAR *ret = NULL;
10
11 if (!str) return NULL;
12 if (!end) end = str + lstrlenW(str);
13 while (str < end)
14 {
15 if (*str == ch) ret = (WCHAR *)str;
16 str++;
17 }
18 return ret;
19}
#define NULL
Definition: types.h:112
#define lstrlenW
Definition: compat.h:750
unsigned char ch[4][2]
Definition: console.c:118
return ret
Definition: mutex.c:146
GLuint GLuint end
Definition: gl.h:1545
short WCHAR
Definition: pedump.c:58
const WCHAR * str