4 #include "oslib/asprintf.h"
6 #ifndef CONFIG_HAVE_VASPRINTF
7 int vasprintf(char **strp, const char *fmt, va_list ap)
16 __va_copy(ap_copy, ap);
18 len = vsnprintf(NULL, 0, fmt, ap_copy);
27 return str ? vsnprintf(str, len, fmt, ap) : -1;
31 #ifndef CONFIG_HAVE_ASPRINTF
32 int asprintf(char **strp, const char *fmt, ...)
38 done = vasprintf(strp, fmt, arg);