ReactOS  0.4.14-dev-599-g2d4d3f5
mbstowcs.c File Reference
#include <apitest.h>
#include <stdio.h>
#include <stdlib.h>
#include <specstrings.h>
Include dependency graph for mbstowcs.c:

Go to the source code of this file.

Macros

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

Functions

 START_TEST (mbstowcs)
 

Macro Definition Documentation

◆ LStrROS

#define LStrROS   L"ReactOS"

Definition at line 15 of file mbstowcs.c.

◆ StrROS

#define StrROS   "ReactOS"

Definition at line 14 of file mbstowcs.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 9 of file mbstowcs.c.

Function Documentation

◆ START_TEST()

START_TEST ( mbstowcs  )

Definition at line 17 of file mbstowcs.c.

18 {
19  size_t len;
20  wchar_t out[ARRAYSIZE(LStrROS)];
21 
22  len = mbstowcs(NULL, StrROS, 0);
23  ok(len == 7, "Got len = %u, excepting 7\n", len);
24  len = mbstowcs(NULL, StrROS, 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 ARRAYSIZE(array)
Definition: filtermapper.c:47
#define StrROS
Definition: mbstowcs.c:14
smooth NULL
Definition: ftsmooth.c:416
#define LStrROS
Definition: mbstowcs.c:15
static FILE * out
Definition: regtests2xml.c:44
#define ok_wstr(x, y)
Definition: atltest.h:130
GLenum GLsizei len
Definition: glext.h:6722
#define ok(value,...)
Definition: atltest.h:57
size_t mbstowcs(wchar_t *widechar, const char *multibyte, size_t number)
Definition: mbstowcs.c:40
#define memset(x, y, z)
Definition: compat.h:39