Name
vsprintf function — Writes formatted data to a string
Synopsis
#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.
See Also
sprintf function,
vswprintf
in <cwchar>
, <cstdarg>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.