summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-03-02 07:29:33 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-03-02 07:29:33 +0000
commit15ebf2d9f425fd8b49baa82e23e33bd20dd56b33 (patch)
tree1153eee17bde4dbfe5a6a010ca01c4b6e745a38e /lib
parente537f4dd793214f16773df4b3276252488518d2a (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/printf.314
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 58e949f18f7e..43538e516667 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -36,7 +36,7 @@
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd March 2, 2003
.Dt PRINTF 3
.Os
.Sh NAME
@@ -109,7 +109,7 @@ are converted for output.
These functions return the number of characters printed
(not including the trailing
.Ql \e0
-used to end output to strings),
+used to end output to strings) or a negative value if an output error occurs,
except for
.Fn snprintf
and
@@ -574,6 +574,16 @@ char *newfmt(const char *fmt, ...)
return (p);
}
.Ed
+.Sh ERRORS
+In addition to the errors documented for the
+.Xr write 2
+system call, the
+.Fn printf
+family of functions may fail if:
+.Bl -tag -width Er
+.It Bq Er ENOMEM
+Insufficient storage space is available.
+.El
.Sh SEE ALSO
.Xr printf 1 ,
.Xr scanf 3