11#define WIN32_NO_STATUS
18#define todo_static todo_if(1)
31#define wctomb p_wctomb
40 wchar_t wchSrc[2] = {
L'R', 0414};
42#ifndef TEST_STATIC_CRT
45 skip(
"Skipping tests, because wctomb is not available\n");
53 skip(
"Buffer allocation failed!\n");
59 printf(
"The current codepage of your system tested is (%u) and locale (%s).\n\n",
codepage, loc);
63 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
67 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
71 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);
72 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
81 ok(
Length == 1,
"Expected one character to be converted (the null character) but got %d.\n",
Length);
86 ok(
Length == 1,
"Expected one character to be converted but got %d.\n",
Length);
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
_CRTIMP unsigned int __cdecl ___lc_codepage_func(void)
static PFN_wctomb p_wctomb
int(__cdecl * PFN_wctomb)(char *mbchar, wchar_t wchar)
_In_ ULONG _In_ ULONG _In_ ULONG Length
size_t const wchar_t const wchar