#include <apitest.h>
#include <apitest_guard.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <locale.h>
Go to the source code of this file.
◆ todo_static
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 23 of file wctomb.c.
24{
26 char *chDest;
27 char *loc;
29 wchar_t wchSrc[2] = {
L'R', 0414};
30
32 if (!chDest)
33 {
34 skip(
"Buffer allocation failed!\n");
35 return;
36 }
37
38
40 printf(
"The current codepage of your system tested is (%u) and locale (%s).\n\n",
codepage, loc);
41
42
44 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
45
46
48 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
49
50
52 ok(
errno == 0,
"The error number (errno) should be 0 even though an invalid character in current locale is given but got %d.\n",
errno);
53 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
54
55
59
60
62 ok(
Length == 1,
"Expected one character to be converted (the null character) but got %d.\n",
Length);
64
65
67 ok(
Length == 1,
"Expected one character to be converted but got %d.\n",
Length);
69
71}
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
_CRTIMP unsigned int __cdecl ___lc_codepage_func(void)
_In_ ULONG _In_ ULONG _In_ ULONG Length