ReactOS
0.4.16-dev-424-ge4748fe
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
Functions
lstrcpynW.c File Reference
#include "
precomp.h
"
Include dependency graph for lstrcpynW.c:
Go to the source code of this file.
Functions
START_TEST
(
lstrcpynW
)
Function Documentation
◆
START_TEST()
START_TEST
(
lstrcpynW
)
Definition at line
9
of file
lstrcpynW.c
.
10
{
11
WCHAR
buffer
[256];
12
13
/* Test basic functionality */
14
ok
(
lstrcpynW
(
buffer
,
L
"Copy this string"
, 256) ==
buffer
,
"lstrncpyW failed!\n"
);
15
ok
(!
lstrcmpW
(
buffer
,
L
"Copy this string"
),
"Copy went wrong.\n"
);
16
17
/* Test for buffer too small */
18
ok
(
lstrcpynW
(
buffer
,
L
"Copy this string"
, 10) ==
buffer
,
"lstrncpyW failed!\n"
);
19
ok
(
buffer
[9] == 0,
"lstrncpyW should have NULL-terminated the string"
);
20
ok
(!
lstrcmpW
(
buffer
,
L
"Copy this"
),
"Copy went wrong.\n"
);
21
22
/* Test some invalid buffer */
23
ok
(
lstrcpynW
((
LPWSTR
)(
LONG_PTR
)0xbaadf00d,
L
"Copy this string"
, 256) ==
NULL
,
"lstrncpyW should have returned NULL.\n"
);
24
}
ok
#define ok(value,...)
Definition:
atltest.h:57
NULL
#define NULL
Definition:
types.h:112
lstrcpynW
#define lstrcpynW
Definition:
compat.h:738
lstrcmpW
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
Definition:
locale.c:4243
buffer
GLuint buffer
Definition:
glext.h:5915
LONG_PTR
__int3264 LONG_PTR
Definition:
mstsclib_h.h:276
L
#define L(x)
Definition:
ntvdm.h:50
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
modules
rostests
apitests
kernel32
lstrcpynW.c
Generated on Mon Jan 6 2025 06:21:33 for ReactOS by
1.9.6