summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2013-03-05 17:19:07 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2013-03-05 17:19:07 +0000
commit181fe2b5a609a884d4d6187135b85d483ba95cfa (patch)
tree38755aa3ada64209c3d440e113a2cc967e006a13 /lib
parent31bda8423e5e8ef458791aa31ce839b81433b363 (diff)
tweak wording of scanf return value; prompted by Jan Stary; ok jmc@
Diffstat (limited to 'lib')
-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