ReactOS
0.4.16-dev-550-g2186ce3
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
m
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
_
a
b
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
wcstombs.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS api tests
3
* LICENSE: GPL - See COPYING in the top level directory
4
* PURPOSE: Test for wcstombs
5
*/
6
7
#include <
apitest.h
>
8
9
#define WIN32_NO_STATUS
10
#include <stdio.h>
11
#include <stdlib.h>
12
#include <
specstrings.h
>
13
14
#define LStrROS L"ReactOS"
15
#define StrROS "ReactOS"
16
17
START_TEST
(
wcstombs
)
18
{
19
size_t
len
;
20
char
out
[
ARRAYSIZE
(
StrROS
)];
21
22
len
=
wcstombs
(
NULL
,
LStrROS
, 0);
23
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
24
len
=
wcstombs
(
NULL
,
LStrROS
, 0);
25
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
26
len
=
wcstombs
(
NULL
,
LStrROS
,
ARRAYSIZE
(
out
));
27
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
28
len
=
wcstombs
(
NULL
,
LStrROS
,
ARRAYSIZE
(
out
));
29
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
30
len
=
wcstombs
(
out
,
LStrROS
,
ARRAYSIZE
(
out
));
31
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
32
ok_str
(
out
,
StrROS
);
33
memset
(
out
, 0,
sizeof
(
out
));
34
len
=
wcstombs
(
out
,
LStrROS
,
ARRAYSIZE
(
out
));
35
ok
(
len
== 7,
"Got len = %u, excepting 7\n"
,
len
);
36
ok_str
(
out
,
StrROS
);
37
}
apitest.h
ok_str
#define ok_str(x, y)
Definition:
atltest.h:127
ok
#define ok(value,...)
Definition:
atltest.h:57
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NULL
#define NULL
Definition:
types.h:112
ARRAYSIZE
#define ARRAYSIZE(array)
Definition:
filtermapper.c:47
len
GLenum GLsizei len
Definition:
glext.h:6722
wcstombs
wcstombs
Definition:
stdlib.h:1013
memset
#define memset(x, y, z)
Definition:
compat.h:39
specstrings.h
out
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition:
wcsftime.cpp:383
StrROS
#define StrROS
Definition:
wcstombs.c:15
LStrROS
#define LStrROS
Definition:
wcstombs.c:14
modules
rostests
apitests
crt
wcstombs.c
Generated on Mon Jan 20 2025 06:06:57 for ReactOS by
1.9.6