ReactOS 0.4.17-dev-284-g529f3c6
StrRChrW.c
Go to the documentation of this file.
1
2#include <windef.h>
3#include <winbase.h>
4
5// Implementation from string.c copied here in order not
6// to depend on the whole file just for the PathCch library.
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}
WCHAR *WINAPI StrRChrW(const WCHAR *str, const WCHAR *end, WORD ch)
Definition: StrRChrW.c:7
#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
unsigned short WORD
Definition: ntddk_ex.h:93
GLuint GLuint end
Definition: gl.h:1545
short WCHAR
Definition: pedump.c:58
const WCHAR * str
#define WINAPI
Definition: msvc.h:6