summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2008-12-16 23:09:19 +0000
committerchristos <christos@NetBSD.org>2008-12-16 23:09:19 +0000
commit20ffd1f752dcb6071a4f3bcb32be89fc80ecef28 (patch)
treec977ceb7f30ea9c6a87e79dd12c9a12c588a7547 /lib/libc
parent6be7b1d93603f65b8126799462f5f883495b8abc (diff)
fix return values for snprintf and vsnprintf.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/printf.310
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 6e1705083b2..79d9431b34c 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.46 2008/12/11 09:07:46 wiz Exp $
+.\" $NetBSD: printf.3,v 1.47 2008/12/16 23:09:19 christos Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd June 9, 2007
+.Dd December 16, 2008
.Dt PRINTF 3
.Os
.Sh NAME
@@ -704,7 +704,11 @@ width, the
field is expanded to contain the conversion result.
.Sh RETURN VALUES
These functions return
-the number of characters printed
+the number of characters printed, or that would be printed if there
+was adequate space in case of
+.Fn snprintf
+and
+.Fn vsnprintf ,
(not including the trailing
.Ql \e0
used to end output to strings).