Standard C++ Library Reference ISO/IEC (VERSION3)

vwprintf
int vwprintf(const wchar_t *format,
va_list arg);
The function generates formatted text, under the control of the format format and any additional
arguments, and writes each generated wide character to the stream stdout. It returns the number of
characters generated, or a negative value if the function sets the error indicator for the stream.
The function accesses additional arguments by using the context information designated by ap. The
program must execute the macro va_start before it calls the function, and then execute the macro
va_end after the function returns.
WCHAR_MAX
#define WCHAR_MAX <#if expression >= 127>
The macro yields the maximum value for type wchar_t.
WCHAR_MIN
#define WCHAR_MIN <#if expression <= 0>
The macro yields the minimum value for type wchar_t.
wchar_t
typedef i-type wchar_t; [keyword in C++]
The type is the integer type i-type of a wide-character constant, such as L'X'. You declare an object of
type wchar_t to hold a wide character.
wcrtomb
size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps);
The function determines the number of bytes needed to represent the wide character wc as a multibyte
character, if possible. (Not all values representable as type wchar_t are necessarily valid wide-character
codes.)
If ps is not a null pointer, the conversion state for the multibyte string is assumed to be *ps. Otherwise, it
is assumed to be &internal, where internal is an object of type mbstate_t internal to the
wcrtomb function. At program startup, internal is initialized to the initial conversion state. No other
library function alters the value stored in internal.
If s is not a null pointer and wc is a valid wide-character code, the function determines x, the number of
bytes needed to represent wc as a multibyte character, and stores the converted bytes in the array of char
beginning at s. (x cannot be greater than MB_CUR_MAX.) If wc is a null wide character, the function stores