vsprintf sends data to the memory pointed to by buffer.
#include <stdio.h> #include <stdarg.h> int vsprintf(char *buffer, const char *format, va_list ap);
int vsprintf_s(char *buffer, rsize_t size, const char *format, va_list ap);
#include <wchar.h>
#include <stdarg.h>
int vswprintf(wchar_t *buffer, const wchar_t *format, va_list ap);
int vswprintf_s(wchar_t *buffer, rsize_t size, const wchar_t *format, va_list ap);
buffer
size
format
ap
These functions are similar to their counterpart sprintf, but each accepts a pointer to a variable-argument list instead of additional arguments.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_vstprintf | vsprintf | vswprintf |
_vstprintf_s | vsprintf_s | vswprintf_s |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (wide-character and generic text versions) |
intime/rt/include/stdio.h intime/rt/include/wchar.h intime/rt/include/tchar.h |
stdio.h stdarg.h wchar.h tchar.h |
clib.lib |