6 #include "xmlrpc_config.h" /* For HAVE_ASPRINTF */
9 void GNU_PRINTF_ATTR(2,3)
10 casprintf(const char ** const retvalP
, const char * const fmt
, ...) {
14 va_list varargs
; /* mysterious structure used by variable arg facility */
16 va_start(varargs
, fmt
); /* start up the mysterious variable arg facility */
19 vasprintf(&retval
, fmt
, varargs
);
21 retval
= malloc(8192);
22 vsnprintf(retval
, 8192, fmt
, varargs
);
30 strfree(const char * const string
) {