#include <apitest.h>
#include <apitest_guard.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 15 of file mbtowc.c.
16{
18 wchar_t BufferDest[3];
19 char *ch;
20
22 if (!ch)
23 {
24 skip(
"Buffer allocation failed!\n");
25 return;
26 }
27
28
29 *ch = 'A';
30
31
33 ok(
Length == 0,
"Expected 0 characters to be converted as everything is NULL but got %u.\n",
Length);
34
35
37 ok(
Length == 0,
"Expected 0 characters to be converted but got %u.\n",
Length);
38
39
41 ok(
Length == 0,
"Expected 0 characters to be converted but got %u.\n",
Length);
42
43
45 ok(
Length == 0,
"Expected 0 characters to be converted but got %u.\n",
Length);
46
47
49 ok(
Length == 0,
"Expected 0 characters to be converted but got %u.\n",
Length);
50
51
53 ok(
Length == 1,
"The number of bytes to check should be 1 but got %u.\n",
Length);
54
55
57 ok(
Length == 1,
"Expected 1 character to be converted but got %u.\n",
Length);
59
61}
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
_In_ ULONG _In_ ULONG _In_ ULONG Length