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.
7
WCHAR
*
WINAPI
StrRChrW
(
const
WCHAR
*
str
,
const
WCHAR
*
end
,
WORD
ch
)
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
}
StrRChrW
WCHAR *WINAPI StrRChrW(const WCHAR *str, const WCHAR *end, WORD ch)
Definition:
StrRChrW.c:7
NULL
#define NULL
Definition:
types.h:112
lstrlenW
#define lstrlenW
Definition:
compat.h:750
ch
unsigned char ch[4][2]
Definition:
console.c:118
ret
return ret
Definition:
mutex.c:146
WORD
unsigned short WORD
Definition:
ntddk_ex.h:93
end
GLuint GLuint end
Definition:
gl.h:1545
WCHAR
short WCHAR
Definition:
pedump.c:58
str
const WCHAR * str
Definition:
rpc_transport.c:2696
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
sdk
lib
pathcch
StrRChrW.c
Generated on Thu Jun 11 2026 06:24:05 for ReactOS by
1.9.6