Everything

swprintf


Converts data according to a format and outputs it to the specified area.

[Format]

#include <stdio.h>

#include <wchar.h>

long swprintf(wchar_t *restrict s, size_t n, const wchar_t *restrict control [, arg]...);

[Parameters]

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

[Return values]

Normal: Number of characters converted

Abnormal: When a representation format error occurs or writing n or morewide characters is requested: Negative value

[Remarks]

The swprintf function is the wide-character version of the sprintf function.