Closed kadler closed 4 years ago
This is needed by util-linux
https://man7.org/linux/man-pages/man3/asprintf.3.html https://www.freebsd.org/cgi/man.cgi?query=asprintf&apropos=0&sektion=3&manpath=FreeBSD+6.2-RELEASE&format=html
It can be created by wrapping vsnprintf, eg something like this but with error checking:
int size = vsnprintf(NULL, 0, fmt, args); char* str = malloc(size+1); vsnprintf(str, size+1, fmt, args);
This is needed by util-linux
https://man7.org/linux/man-pages/man3/asprintf.3.html https://www.freebsd.org/cgi/man.cgi?query=asprintf&apropos=0&sektion=3&manpath=FreeBSD+6.2-RELEASE&format=html
It can be created by wrapping vsnprintf, eg something like this but with error checking: