vsprintf function — Writes formatted data to a string
#include <cstdarg>
int vsprintf(char* s, const char* format, va_list arg)
The vsprintf
function is
like sprintf
, but the values to
print are taken from successive arguments in arg
(obtained by calling va_start(arg
,
param
)
). Use vsprintf
to write your own sprintf
-like function.