summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-07-24 22:58:39 +0000
committermillert <millert@openbsd.org>2002-07-24 22:58:39 +0000
commit452aa60b85d13087c941f2d830f42b79d60a0bd9 (patch)
tree405482e8329b3415a028a400634db0f22d1ad565 /lib/libc
parentspaces (diff)
downloadwireguard-openbsd-452aa60b85d13087c941f2d830f42b79d60a0bd9.tar.xz
wireguard-openbsd-452aa60b85d13087c941f2d830f42b79d60a0bd9.zip
Document that *printf can return -1 on error. This includes snprintf(),
though our implementation never does this.
Diffstat (limited to 'lib/libc')
-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