ReactOS 0.4.15-dev-7670-g69b08be
wcstombs.c File Reference
#include <apitest.h>
#include <stdio.h>
#include <stdlib.h>
#include <specstrings.h>
Include dependency graph for wcstombs.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define LStrROS   L"ReactOS"
 
#define StrROS   "ReactOS"
 

Functions

 START_TEST (wcstombs)
 

Macro Definition Documentation

◆ LStrROS

#define LStrROS   L"ReactOS"

Definition at line 14 of file wcstombs.c.

◆ StrROS

#define StrROS   "ReactOS"

Definition at line 15 of file wcstombs.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 9 of file wcstombs.c.

Function Documentation

◆ START_TEST()

START_TEST ( wcstombs  )

Definition at line 17 of file wcstombs.c.

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);
27 ok(len == 7, "Got len = %u, excepting 7\n", len);
29 ok(len == 7, "Got len = %u, excepting 7\n", len);
31 ok(len == 7, "Got len = %u, excepting 7\n", len);
33 memset(out, 0, sizeof(out));
35 ok(len == 7, "Got len = %u, excepting 7\n", len);
37}
#define ok_str(x, y)
Definition: atltest.h:127
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
GLenum GLsizei len
Definition: glext.h:6722
size_t __cdecl wcstombs(_Out_writes_opt_z_(_MaxCount) char *_Dest, _In_z_ const wchar_t *_Source, _In_ size_t _MaxCount)
static FILE * out
Definition: regtests2xml.c:44
#define memset(x, y, z)
Definition: compat.h:39
#define StrROS
Definition: wcstombs.c:15
#define LStrROS
Definition: wcstombs.c:14