Print formatted data from variable argument list to stdout.
Writes the C string pointed by format to the stream. If format includes format specifiers (subsequences beginning with %), the additional arguments stored in arg list are formatted and inserted in the resulting string replacing their respective specifiers.
- Parameters
-
format | C string that contains the text to be written to the stream.Can contain embedded format specifiers. |
arg | A value identifying a variable arguments list initialized with va_start. |
- Returns
- Total number of characters written to stream.