ASPRINTF
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ATTRIBUTES
CONFORMING TO
SEE ALSO
COLOPHON
NAME
asprintf, vasprintf − print to allocated string
SYNOPSIS
#define _GNU_SOURCE /bin /boot /dead.letter /dev /etc /home /initrd /lib /lib64 /lost+found /media /mnt /opt /proc /release-notes.html /release-notes.txt /root /run /sbin /srv /sys /tmp /usr /var See feature_test_macros(7) bodies/ usr/
#include
int asprintf(char **strp, const char *fmt, …);
int vasprintf(char **strp, const char *fmt, va_list ap);
DESCRIPTION
The functions asprintf() and vasprintf() are analogs of sprintf(3) and vsprintf(3), except that they allocate a string large enough to hold the output including the terminating null byte (‘