32 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
33 # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
35 # define _GL_ATTRIBUTE_FORMAT(spec)
66 #if REPLACE_VASNPRINTF
67 # define asnprintf rpl_asnprintf
68 # define vasnprintf rpl_vasnprintf
70 extern char *
asnprintf (
char *resultbuf,
size_t *lengthp,
const char *format, ...)
72 extern
char *
vasnprintf (
char *resultbuf,
size_t *lengthp, const
char *format, va_list args)
char char * vasnprintf(char *resultbuf, size_t *lengthp, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT((__printf__
char * asnprintf(char *resultbuf, size_t *lengthp, const char *format,...) _GL_ATTRIBUTE_FORMAT((__printf__
Write formatted output to a string dynamically allocated with malloc().
#define _GL_ATTRIBUTE_FORMAT(spec)
vsprintf with automatic memory allocation.