It would be nice to add asprintf and vasprintf. They are similar to sprintf, but they will allocate the buffers for you
int asprintf(char **__restrict strp, const char *__restrict fmt, ...);
int vasprintf(char **__restrict strp, const char *__restrict fmt, va_list ap);
https://www.man7.org/linux/man-pages/man3/asprintf.3.html