2 Copyright (C) 2002,2005 Vladimir Oleynik <dzo@simtreas.ru>
10 char *bb_xasprintf(const char *format, ...)
16 #ifdef HAVE_GNU_EXTENSIONS
18 r = vasprintf(&string_ptr, format, p);
22 r = vsnprintf(NULL, 0, format, p);
24 string_ptr = xmalloc(r+1);
26 r = vsnprintf(string_ptr, r+1, format, p);
31 bb_perror_msg_and_die("bb_xasprintf");