Converts data according to a format and outputs it to the specified area.
long sprintf (char *s, const char *control[, arg...]);
s Pointer to storage area to which data is to be output
control Pointer to string indicating format
arg,... Data to be output according to format
Number of characters converted
The sprintf function converts and edits parameter arg according to the string that represents the format pointed to by control, and outputs the result to the storage area pointed to by s.
A null character is appended at the end of the converted and output string. This null character is not included in the return value (number of characters output).
For details of the format specifications, see the description of the fprintf function.