vsprintf sends data to the memory pointed to by buffer.
#include <stdio.h> #include <stdarg.h> int vsnprintf(char *buffer, size_t size, const char *format, va_list ap);
int vsnprintf_s(char *buffer, rsize_t size, const char *format, va_list ap);
buffer
size
format
ap
These functions are similar to their counterparts snprintf and snprintf_s, but each accepts a pointer to a variable-argument list instead of additional arguments.
The vsnprintf_s function does some additional parameter validation. If buffer or format is NULL, or size is zero or greater than RSIZE_MAX then the function will return a negative number and set error to E_INVAL.
The vsnprintf_s function, unlike the vsprintf_s function, will truncate the result to fit in the array pointed to by buffer.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h stdarg. |
clib.lib |