summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2008-12-11 04:30:57 +0000
committeryamt <yamt@NetBSD.org>2008-12-11 04:30:57 +0000
commitad61a2c71e6535ce2ef3231c14b60ce38bbe8665 (patch)
tree725cbd723e27c6bbee123c3f63233161bbf90a3e /lib
parent5a186cb789c1535579386d0b5529e61734788a1d (diff)
move a description of return values into the RETURN VALUES section.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/printf.318
-rw-r--r--lib/libc/stdio/wprintf.312
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 997b67d41e5..de4f60eb337 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.44 2007/06/09 18:51:19 christos Exp $
+.\" $NetBSD: printf.3,v 1.45 2008/12/11 04:30:57 yamt Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -113,14 +113,6 @@ string that specifies how subsequent arguments
.Xr stdarg 3 )
are converted for output.
.Pp
-These functions return
-the number of characters printed
-(not including the trailing
-.Ql \e0
-used to end output to strings).
-If an output error was encountered, these functions shall return a
-negative value.
-.Pp
.Fn asprintf
and
.Fn vasprintf
@@ -710,6 +702,14 @@ In no case does a non-existent or small field width cause truncation of
a numeric field; if the result of a conversion is wider than the field
width, the
field is expanded to contain the conversion result.
+.Sh RETURN VALUES
+These functions return
+the number of characters printed
+(not including the trailing
+.Ql \e0
+used to end output to strings).
+If an output error was encountered, these functions shall return a
+negative value.
.Sh EXAMPLES
.br
To print a date and time in the form
diff --git a/lib/libc/stdio/wprintf.3 b/lib/libc/stdio/wprintf.3
index 0944f17e0fd..7a1bdda45f6 100644
--- a/lib/libc/stdio/wprintf.3
+++ b/lib/libc/stdio/wprintf.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: wprintf.3,v 1.2 2005/06/03 20:32:20 wiz Exp $
+.\" $NetBSD: wprintf.3,v 1.3 2008/12/11 04:33:22 yamt Exp $
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -95,11 +95,6 @@ string that specifies how subsequent arguments
.Xr stdarg 3 )
are converted for output.
.Pp
-These functions return the number of characters printed
-(not including the trailing
-.Ql \e0
-used to end output to strings).
-.Pp
The
.Fn swprintf
and
@@ -593,6 +588,11 @@ In no case does a non-existent or small field width cause truncation of
a numeric field; if the result of a conversion is wider than the field
width, the
field is expanded to contain the conversion result.
+.Sh RETURN VALUES
+These functions return the number of characters printed
+(not including the trailing
+.Ql \e0
+used to end output to strings).
.Sh SEE ALSO
.Xr btowc 3 ,
.Xr fputws 3 ,