summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2013-03-05 17:19:06 +0000
committerotto <otto@openbsd.org>2013-03-05 17:19:06 +0000
commitc024e561d5d1bfe0799c520d372779777ea24363 (patch)
tree604ef9f4689fdf787bbeace8561ea050a2a675d3 /lib/libc
parentlet whois -P do a query against peeringdb. ok deraadt phessler, feedback jmc (diff)
downloadwireguard-openbsd-c024e561d5d1bfe0799c520d372779777ea24363.tar.xz
wireguard-openbsd-c024e561d5d1bfe0799c520d372779777ea24363.zip
tweak wording of scanf return value; prompted by Jan Stary; ok jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/scanf.39
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3
index 57b3c6d17a9..311f73b3aff 100644
--- a/lib/libc/stdio/scanf.3
+++ b/lib/libc/stdio/scanf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: scanf.3,v 1.20 2012/01/18 14:01:38 stsp Exp $
+.\" $OpenBSD: scanf.3,v 1.21 2013/03/05 17:19:06 otto Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 18 2012 $
+.Dd $Mdocdate: March 5 2013 $
.Dt SCANF 3
.Os
.Sh NAME
@@ -423,8 +423,9 @@ such as an alphabetic character for a
conversion.
The value
.Dv EOF
-is returned if an input failure occurs before any conversion such as an
-end-of-file occurs.
+is returned if an input failure,
+such as an end-of-file,
+occurs before any conversion.
If an error or end-of-file occurs after conversion has begun,
the number of conversions which were successfully completed is returned.
.Sh SEE ALSO