]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/scanf.3.patch
Libc-391.tar.gz
[apple/libc.git] / stdio / FreeBSD / scanf.3.patch
1 --- scanf.3.orig Fri Mar 11 17:08:59 2005
2 +++ scanf.3 Fri Mar 11 17:03:13 2005
3 @@ -115,10 +115,18 @@
4 each successive conversion specifier
5 (but see the
6 .Cm *
7 -conversion below).
8 +and
9 +.Cm %n$
10 +conversions below).
11 All conversions are introduced by the
12 .Cm %
13 -(percent sign) character.
14 +(percent sign) character or
15 +.Cm %n$
16 +sequence. In the latter case the next
17 +.Em pointer
18 +will be the
19 +.Cm n
20 +th argument after the format string.
21 The
22 .Fa format
23 string
24 @@ -132,10 +140,18 @@
25 when an input character does not match such a format character.
26 Scanning also stops
27 when an input conversion cannot be made (see below).
28 +.Pp
29 +Extended locale versions of these functions are documented in
30 +.Xr scanf_l 3 .
31 +See
32 +.Xr xlocale 3
33 +for more information.
34 .Sh CONVERSIONS
35 Following the
36 .Cm %
37 -character introducing a conversion
38 +character or
39 +.Cm %n$
40 +sequence introducing a conversion
41 there may be a number of
42 .Em flag
43 characters, as follows:
44 @@ -466,7 +482,8 @@
45 .Xr strtod 3 ,
46 .Xr strtol 3 ,
47 .Xr strtoul 3 ,
48 -.Xr wscanf 3
49 +.Xr wscanf 3 ,
50 +.Xr scanf_l 3
51 .Sh STANDARDS
52 The functions
53 .Fn fscanf ,
54 @@ -505,10 +522,6 @@
55 .Cm %512f
56 and
57 .Cm %512d .
58 -.Pp
59 -The
60 -.Cm %n$
61 -modifiers for positional arguments are not implemented.
62 .Pp
63 The
64 .Nm