1 --- scanf.3.orig 2007-04-08 18:49:37.000000000 -0700
2 +++ scanf.3 2007-04-08 20:14:03.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:
107 @@ -440,13 +468,10 @@
108 causes an immediate return of
114 -the number of input items assigned, which can be fewer than provided
115 -for, or even zero, in the event of a matching failure.
117 -indicates that, while there was input available,
118 +These functions return the number of input items assigned.
119 +This can be fewer than provided for, or even zero,
120 +in the event of a matching failure.
121 +Zero indicates that, although there was input available,
122 no conversions were assigned;
123 typically this is due to an invalid input character,
124 such as an alphabetic character for a