From fdfb85cbcaae9dc06e6576235f120fdcf8f88066 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sat, 27 Jan 2001 23:50:02 +0000 Subject: Fixed (hopefully) 0-pad bug in printf. Added asprintf function. Reworked the *s*printf functions to no longer use a static fake file. --- include/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index 61c178308..945e353a9 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -210,6 +210,10 @@ extern int printf __P ((__const char *__restrict __format, ...)); extern int sprintf __P ((char *__restrict __s, __const char *__restrict __format, ...)); +/* Write formatted output to a buffer S dynamically allocated by asprintf. */ +extern int asprintf __P ((char **__restrict __s, + __const char *__restrict __format, ...)); + /* Write formatted output to S from argument list ARG. */ extern int vfprintf __P ((FILE *__restrict __s, __const char *__restrict __format, -- cgit v1.2.3