vasprintf
Name
vasprintf -- write formatted output to a dynamically allocated string
Synopsis
#include <stdarg.h>
#include <stdio.h> |
int
vasprintf
(char * * restrict
ptr, const char * restrict
format, va_list
arg);
Description
The vasprintf() function shall write
formatted output to a
dynamically allocated string, and store
the address of that string in the location
referenced by ptr.
It shall behave as asprintf(),
except that instead of being called with a variable number
of arguments, it is called with an argument list as defined
by <stdarg.h>.
Return Value
Refer to fprintf().
Errors
Refer to fprintf().