summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/scanf.3
diff options
context:
space:
mode:
authorjaredy <jaredy@openbsd.org>2005-07-26 03:30:25 +0000
committerjaredy <jaredy@openbsd.org>2005-07-26 03:30:25 +0000
commit2f2ed4fb1c1c50ba362ab9d8bcbb47d714c9eecd (patch)
tree083f8216358973290d0918f833b769ce5465dc87 /lib/libc/stdio/scanf.3
parentclarify description of 'c' conversion; ok millert, jmc (diff)
downloadwireguard-openbsd-2f2ed4fb1c1c50ba362ab9d8bcbb47d714c9eecd.tar.xz
wireguard-openbsd-2f2ed4fb1c1c50ba362ab9d8bcbb47d714c9eecd.zip
- typos, punctuation, spacing, macro, layout, etc. fixes
- avoid first person ok jmc
Diffstat (limited to 'lib/libc/stdio/scanf.3')
-rw-r--r--lib/libc/stdio/scanf.320
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3
index d533d7a7b0f..8e1e85942b6 100644
--- a/lib/libc/stdio/scanf.3
+++ b/lib/libc/stdio/scanf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: scanf.3,v 1.13 2005/07/26 03:27:04 jaredy Exp $
+.\" $OpenBSD: scanf.3,v 1.14 2005/07/26 03:30:25 jaredy Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -119,7 +119,7 @@ Scanning also stops when an input conversion cannot be made (see below).
.Sh CONVERSIONS
Following the
.Cm %
-character introducing a conversion there may be a number of
+character, introducing a conversion, there may be a number of
.Em flag
characters, as follows:
.Bl -tag -width indent
@@ -282,14 +282,15 @@ plus a terminating
.Tn NUL
character.
The usual skip of leading whitespace is suppressed.
+.Pp
The string is to be made up of characters in
(or not in)
a particular set;
the set is defined by the characters between the open bracket
-.Cm [
+.Cm \&[
character
and a close bracket
-.Cm ]
+.Cm \&]
character.
The set excludes those characters
if the first character after the open bracket is a circumflex
@@ -305,12 +306,15 @@ when placed between two other characters,
it adds all intervening characters to the set.
To include a hyphen,
make it the last character before the final close bracket.
+.Pp
For instance,
.Ql [^]0-9-]
-means the set `everything except close bracket, zero through nine,
-and hyphen'.
-The string ends with the appearance of a character not in the
-(or, with a circumflex, in) set
+means the set
+.Do
+everything except close bracket, zero through nine, and hyphen
+.Dc .
+The string ends with the appearance of a character not in
+(or, with a circumflex, in) the set
or when the field width runs out.
.It Cm p
Matches a pointer value (as printed by