7.24.2.7 The vswprintf function

Synopsis

1

#include <stdarg.h>
#include <wchar.h>
int vswprintf(wchar_t * restrict s,
     size_t n,
     const wchar_t * restrict format,
     va_list arg);

Description

2

The vswprintf function is equivalent to swprintf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vswprintf function does not invoke the va_end macro.[1]

Returns

3

The vswprintf function returns the number of wide characters written in the array, not counting the terminating null wide character, or a negative value if an encoding error occurred or if n or more wide characters were requested to be generated.

Footnotes