1 --- scanf.3.orig 2008-07-30 01:54:48.000000000 -0700
2 +++ scanf.3 2008-07-30 02:06:07.000000000 -0700
16 .Nd input format conversion
22 -.Fn scanf "const char * restrict format" ...
24 +.Fa "FILE *restrict stream"
25 +.Fa "const char *restrict format" ...
28 -.Fn fscanf "FILE * restrict stream" "const char * restrict format" ...
30 +.Fa "const char *restrict format" ...
33 -.Fn sscanf "const char * restrict str" "const char * restrict format" ...
35 +.Fa "const char *restrict s"
36 +.Fa "const char *restrict format" ...
41 -.Fn vscanf "const char * restrict format" "va_list ap"
43 +.Fa "FILE *restrict stream"
44 +.Fa "const char *restrict format"
48 -.Fn vsscanf "const char * restrict str" "const char * restrict format" "va_list ap"
50 +.Fa "const char *restrict format"
54 -.Fn vfscanf "FILE * restrict stream" "const char * restrict format" "va_list ap"
56 +.Fa "const char *restrict s"
57 +.Fa "const char *restrict format"
63 family of functions scans input according to a
67 This format may contain
68 .Em conversion specifiers ;
72 reads its input from the character string pointed to by
83 -functions respectively.
84 +functions, respectively.
88 argument must correspond properly with
90 when an input character does not match such a format character.
92 when an input conversion cannot be made (see below).
94 +Extended locale versions of these functions are documented in
98 +for more information.
102 -character introducing a conversion
103 +character introducing a conversion,
104 there may be a number of
106 characters, as follows:
110 the next pointer must be a pointer to
113 +(or other pointer type).
116 instead, the number of characters consumed thus far from the input
117 @@ -440,13 +469,10 @@
118 causes an immediate return of
124 -the number of input items assigned, which can be fewer than provided
125 -for, or even zero, in the event of a matching failure.
127 -indicates that, while there was input available,
128 +These functions return the number of input items assigned.
129 +This can be fewer than provided for, or even zero,
130 +in the event of a matching failure.
131 +Zero indicates that, although there was input available,
132 no conversions were assigned;
133 typically this is due to an invalid input character,
134 such as an alphabetic character for a