Converts data according to a format and outputs it to the specified area.
long swprintf(wchar_t *restrict s, size_t n, const wchar_t *restrict control [, arg]...);
s Pointer to storage area to which data is to be output
n Number of wide characters to be output
control Pointer to wide string indicating format
arg,... Data to be output according to format
Normal: Number of characters converted
Abnormal: When a representation format error occurs or writing n or morewide characters is requested: Negative value
The swprintf function is the wide-character version of the sprintf function.