2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for _vscprintf
13 static void call_varargs(int expected_ret
, LPCSTR formatString
, ...)
17 /* Test the basic functionality */
18 va_start(args
, formatString
);
19 ret
= _vscprintf(formatString
, args
);
21 ok(expected_ret
== ret
, "Test failed: expected %i, got %i.\n", expected_ret
, ret
);
24 START_TEST(_vscprintf
)
26 /* Here you can mix wide and ANSI strings */
27 call_varargs(12, "%S world!", L
"hello");
28 call_varargs(12, "%s world!", "hello");
29 call_varargs(11, "%u cookies", 100);
30 /* Do not test NULL argument. That is verified to SEGV on a */
31 /* release-build with VC10 and MS' msvcrt. */