summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-11 18:07:24 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-11 18:07:24 +0000
commit48d18187d69d5669222d266f668e1d6925e322f2 (patch)
tree11aa52ef1bf51c70054b7eeb11650cb018a8e087 /share/man
parent75f36f871367ce4d8829d3da198fce3741e32271 (diff)
add vsnprintf. ok deraadt@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/printf.917
1 files changed, 14 insertions, 3 deletions
diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9
index 53c9d1a2d3b..3b41531f662 100644
--- a/share/man/man9/printf.9
+++ b/share/man/man9/printf.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.9,v 1.8 2003/06/11 17:28:51 tedu Exp $
+.\" $OpenBSD: printf.9,v 1.9 2003/06/11 18:07:23 tedu Exp $
.\" $NetBSD: kprintf.9,v 1.6 1999/03/16 00:40:47 garbled Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,6 +42,7 @@
.Nm printf ,
.Nm snprintf ,
.Nm vprintf ,
+.Nm vsnprintf ,
.Nm uprintf ,
.Nm ttyprintf ,
.Nm db_printf
@@ -56,8 +57,8 @@
.Fc
.Ft int
.Fo "snprintf"
-.Fa "size_t len"
.Fa "char *buf"
+.Fa "size_t size"
.Fa "const char *format"
.Fa "..."
.Fc
@@ -66,6 +67,13 @@
.Fa "const char *format"
.Fa "va_list ap"
.Fc
+.Ft int
+.Fo "vsnprintf"
+.Fa "char *buf"
+.Fa "size_t size"
+.Fa "const char *fmt"
+.Fa "va_list ap"
+.Fc
.Ft void
.Fo "uprintf"
.Fa "const char *format"
@@ -84,6 +92,7 @@ The
.Fn printf ,
.Fn snprintf ,
.Fn vprintf ,
+.Fn vsnprintf ,
.Fn uprintf ,
.Fn ttyprintf ,
and
@@ -187,7 +196,9 @@ This format specifier is only available to
.Sh RETURN VALUES
The
.Fn snprintf
-function returns the number of characters it placed in the buffer
+and
+.Fn vsnprintf
+functions return the number of characters they placed in the buffer
.Fa buf .
.Sh EXAMPLES
Use of the