summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-30 22:19:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-30 22:19:39 +0000
commit092228925c860d21a8b9d0d1d665b0ec27cf249e (patch)
treef890e3c6c0ba1e108d7c2ca6f413fcd3f4bfa1d3 /lib/libc
parent2885b3d9021bca961497676fe528ef0dfe16a862 (diff)
v?asnprintf was never ocmmitted because it make stdio guts too gross. Remove references...
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/Makefile.inc5
-rw-r--r--lib/libc/stdio/printf.329
2 files changed, 10 insertions, 24 deletions
diff --git a/lib/libc/stdio/Makefile.inc b/lib/libc/stdio/Makefile.inc
index 34a98b19707..c83779e225e 100644
--- a/lib/libc/stdio/Makefile.inc
+++ b/lib/libc/stdio/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.6 1998/08/28 18:57:47 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.7 1998/08/30 22:19:38 millert Exp $
# stdio sources
.PATH: ${.CURDIR}/stdio
@@ -34,8 +34,7 @@ MLINKS+=mktemp.3 mkdtemp.3
MLINKS+=mktemp.3 mkstemps.3
MLINKS+=printf.3 fprintf.3 printf.3 snprintf.3 printf.3 sprintf.3 \
printf.3 vfprintf.3 printf.3 vprintf.3 printf.3 vsnprintf.3 \
- printf.3 vsprintf.3 printf.3 asprintf.3 printf.3 vasprintf.3 \
- printf.3 asnprintf.3 printf.3 vasnprintf.3
+ printf.3 vsprintf.3 printf.3 asprintf.3 printf.3 vasprintf.3
MLINKS+=putc.3 fputc.3 putc.3 putchar.3 putc.3 putw.3
MLINKS+=scanf.3 fscanf.3 scanf.3 sscanf.3 scanf.3 vfscanf.3 scanf.3 vscanf.3 \
scanf.3 vsscanf.3
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 7bfde8d32fa..fb7262c941c 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.11 1998/08/29 21:11:52 deraadt Exp $
+.\" $OpenBSD: printf.3,v 1.12 1998/08/30 22:19:37 millert Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -46,7 +46,6 @@
.Nm sprintf ,
.Nm snprintf ,
.Nm asprintf ,
-.Nm asnprintf ,
.Nm vprintf ,
.Nm vfprintf ,
.Nm vsprintf ,
@@ -66,8 +65,6 @@
.Fn snprintf "char *str" "size_t size" "const char *format" ...
.Ft int
.Fn asprintf "char **ret" "const char *format" ...
-.Ft int
-.Fn asnprintf "char **ret" "size_t size" "const char *format" ...
.Fd #include <stdarg.h>
.Ft int
.Fn vprintf "const char *format" "va_list ap"
@@ -79,8 +76,6 @@
.Fn vsnprintf "char *str" "size_t size" "const char *format" "va_list ap"
.Ft int
.Fn vasprintf "char **ret" "const char *format" "va_list ap"
-.Ft int
-.Fn vasnprintf "char **ret" "size_t size" "const char *format" "va_list ap"
.Sh DESCRIPTION
The
.Fn printf
@@ -100,16 +95,14 @@ write output to the given output
.Fa stream ;
.Fn sprintf ,
.Fn snprintf ,
-.Fn vsprintf ,
+.Fn vsprintf
and
.Fn vsnprintf
write to the character string
.Fa str ;
-.Fn asprintf ,
-.Fn asnprintf ,
-.Fn vasprintf
+.Fn asprintf
and
-.Fn vasnprintf
+.Fn vasprintf
write to a dynamically allocated string that is stored in
.Fa ret .
.Pp
@@ -126,11 +119,9 @@ the number of characters printed
.Ql \e0
used to end output to strings).
.Pp
-.Fn Asprintf ,
-.Fn asnprintf ,
-.Fn vasprintf
+.Fn Asprintf
and
-.Fn vasnprintf
+.Fn vasprintf
return a pointer to a buffer sufficiently large to hold the
string in the
.Fa ret
@@ -144,8 +135,6 @@ will return -1 and set
to be a NULL pointer.
.Pp
If
-.Fn asnprintf
-or
.Fn vasprintf
are given a
.Fa size
@@ -153,11 +142,9 @@ of 0, they set
.Fa ret
to be a NULL pointer.
.Pp
-.Fn Snprintf ,
-.Fn vsnprintf ,
-.Fn asnprintf
+.Fn Snprintf
and
-.Fn vasnprintf
+.Fn vsnprintf
will write at most
.Fa size Ns \-1
of the characters printed into the output string