std::vwprintf, std::vfwprintf, std::vswprintf

Header: <cwchar>

Loads the data from locations, defined by vlist,, converts them to wide string equivalents and writes the results to a variety of sinks.

# Declarations

int vwprintf( const wchar_t* format, va_list vlist );
int vfwprintf( std::FILE* stream, const wchar_t* format, va_list vlist );
int vswprintf( wchar_t* buffer, std::size_t buf_size, const wchar_t* format, va_list vlist );

# Parameters

# Notes

While narrow strings provide std::vsnprintf, which makes it possible to determine the required output buffer size, there is no equivalent for wide strings, and in order to determine the buffer size, the program may need to call std::vswprintf, check the result value, and reallocate a larger buffer, trying again until successful.

# Example

This section is incompleteReason: no example

# See also