44 return vasprintf(out, fmt, ap);
46 size_t size = strlen(fmt) + 50;
55 count = vsnprintf(buf, size, fmt, ap);
105 size_t osize = *size;
107 if (osize < strlen(fmt) + 50) {
108 osize = strlen(fmt) + 50;
114 count = vsnprintf(buf, osize, fmt, ap);
int G_rasprintf(char **out, size_t *size, const char *fmt,...)
Reallocating version of asprintf().
int G_asprintf(char **out, const char *fmt,...)
int G_vasprintf(char **out, const char *fmt, va_list ap)
Safe replacement for asprintf().