summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-01-27 23:50:02 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-01-27 23:50:02 +0000
commitfdfb85cbcaae9dc06e6576235f120fdcf8f88066 (patch)
tree292fb0df74cf3ca718798b9434bd49bce75f48c8 /include
parent8b15b45ecc58d84f9d4a6bd91fc0675b446103b8 (diff)
Fixed (hopefully) 0-pad bug in printf. Added asprintf function. Reworked
the *s*printf functions to no longer use a static fake file.
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h4
1 files changed, 4 insertions, 0 deletions
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,