2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for _vscprintf
12 static void call_varargs(int expected_ret
, LPCWSTR formatString
, ...)
16 /* Test the basic functionality */
17 va_start(args
, formatString
);
18 ret
= _vscwprintf(formatString
, args
);
19 ok(expected_ret
== ret
, "expected %i, got %i.\n", expected_ret
, ret
);
22 START_TEST(_vscwprintf
)
24 /* Lesson of the day: don't mix wide and ansi char */
25 /* Lesson of the week: don't ignore the lesson of the day */
26 call_varargs(12, L
"%hs world!", "hello");
27 call_varargs(12, L
"%s world!", L
"hello");
28 call_varargs(17, L
"Jack ate %u pies", 100);
29 /* Do not test NULL argument. That is verified to SEGV on a */
30 /* release-build with VC10 and MS' msvcrt. */