Function stdio_sprintf
Defined in File printf.h
Function Documentation
-
int stdio_sprintf(char *s, const char *format, ...)
An implementation of the C standard’s sprintf()
Note
To avoid buffer overflows, you should generally use stdio_snprintf() instead.
- Parameters:
s – An array in which to store the formatted string. It must be large enough to fit the formatted output!
format – A string specifying the format of the output, with %-marked specifiers of how to interpret additional arguments.
... – Additional arguments to the function, one for each specifier in
format
- Returns:
The number of characters written into
s
, not counting the terminating null character