diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-07-26 03:30:26 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-07-26 03:30:26 +0000 |
commit | 56efb7874536df9516efc1b361f89bd7c6ae87ee (patch) | |
tree | 343b9a8fce5816c9a3d7c7161079c3882ec756b9 /lib/libc/stdio/scanf.3 | |
parent | 03ed4d1150e07efa307ccba0948c2a9ba9452e27 (diff) |
- 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.3 | 20 |
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 |