Added [v]asprintf()

This commit is contained in:
Michael Brown
2007-06-03 01:50:03 +00:00
parent 335b99a39d
commit 816c8f3b89
2 changed files with 52 additions and 0 deletions

View File

@@ -10,10 +10,15 @@ printf ( const char *fmt, ... );
extern int __attribute__ (( format ( printf, 3, 4 ) ))
snprintf ( char *buf, size_t size, const char *fmt, ... );
extern int __attribute__ (( format ( printf, 2, 3 ) ))
asprintf ( char **strp, const char *fmt, ... );
extern int vprintf ( const char *fmt, va_list args );
extern int vsnprintf ( char *buf, size_t size, const char *fmt, va_list args );
extern int vasprintf ( char **strp, const char *fmt, va_list args );
/**
* Write a formatted string to a buffer
*