summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-07-24 22:58:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-07-24 22:58:40 +0000
commit2913fe450e29cf937e2c1e10222d22a0e68cc070 (patch)
treea267a670bda65f4b4365bcfce90178d36cef9053 /lib/libc/stdio
parentd1587769ba6cf660f382e2c254379dc62191bde9 (diff)
Document that *printf can return -1 on error. This includes snprintf(),
though our implementation never does this.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/printf.33
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index eb2e5977f0b..27a49825bf5 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.37 2002/05/01 08:03:29 mpech Exp $
+.\" $OpenBSD: printf.3,v 1.38 2002/07/24 22:58:39 millert Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -134,6 +134,7 @@ were unlimited
again, not including the final
.Ql \e0
.Pc .
+If an output or encoding error occurs, a value of \-1 is returned instead.
.Pp
.Fn asprintf
and