Formats wide-character data under control of the format control string, using a variable argument list.
#include <stdarg.h> #include <wchar.h> int vswprintf ( wchar_t *ws, size_t n, const wchar_t *format, va_list arg);
(OUT) Points to the character array into which to place the output. The array always ends in a NULL wide character unless the n parameter is zero.
(IN) Specifies the number of characters to output.
(IN) Points to the format control string. See Section 12.4, Wide-Character Print Format Control Strings.
(IN) Specifies a variable argument list for conversion specifiers. The number of arguments in the list is determined by the format string.
If successful, returns the number of characters written into the array, not counting the null-terminating character. Otherwise, returns a negative value and sets errno to one of the following:
The vswprintf function formats data under control of the format control string and writes the result to ws. The vswprintf function is equivalent to swprintf, with the variable arguments replaced with arg, which has been initialized by the va_start macro.