43 return vasprintf(out, fmt, ap);
45 size_t size = strlen(fmt) + 50;
54 count = vsnprintf(buf, size, fmt, ap);
98 int G_rasprintf(
char **out,
size_t *size,
const char *fmt, ...)
103 size_t osize = *size;
105 if (osize < strlen(fmt) + 50) {
106 osize = strlen(fmt) + 50;
112 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().