1 --- wscanf.3.bsdnew 2009-11-11 13:33:22.000000000 -0800
2 +++ wscanf.3 2009-11-11 13:33:22.000000000 -0800
16 .Nd wide character input format conversion
23 -.Fn wscanf "const wchar_t * restrict format" ...
25 +.Fa "FILE *restrict stream"
26 +.Fa "const wchar_t *restrict format"
30 -.Fn fwscanf "FILE * restrict stream" "const wchar_t * restrict format" ...
32 +.Fa "const wchar_t *restrict ws"
33 +.Fa "const wchar_t *restrict format"
37 -.Fn swscanf "const wchar_t * restrict str" "const wchar_t * restrict format" ...
39 +.Fa "const wchar_t *restrict format"
46 -.Fn vwscanf "const wchar_t * restrict format" "va_list ap"
48 +.Fa "FILE *restrict stream"
49 +.Fa "const wchar_t *restrict format"
53 -.Fn vswscanf "const wchar_t * restrict str" "const wchar_t * restrict format" "va_list ap"
55 +.Fa "const wchar_t *restrict ws"
56 +.Fa "const wchar_t *restrict format"
60 -.Fn vfwscanf "FILE * restrict stream" "const wchar_t * restrict format" "va_list ap"
62 +.Fa "const wchar_t *restrict format"
68 -family of functions scans input according to a
69 +family of functions scans input, according to a
72 This format may contain
73 @@ -85,7 +109,8 @@ reads input from the stream pointer
76 reads its input from the wide character string pointed to by
83 @@ -117,6 +142,7 @@ conversion below).
84 All conversions are introduced by the
86 (percent sign) character.
91 @@ -130,10 +156,16 @@ Scanning stops
92 when an input character does not match such a format character.
94 when an input conversion cannot be made (see below).
96 +Extended locale versions of these functions are documented in
100 +for more information.
104 -character introducing a conversion
105 +character introducing a conversion,
106 there may be a number of
108 characters, as follows:
109 @@ -429,15 +461,12 @@ of
110 causes an immediate return of
116 -the number of input items assigned, which can be fewer than provided
117 -for, or even zero, in the event of a matching failure.
119 -indicates that, while there was input available,
120 +These functions return the number of input items assigned,
121 +which can be fewer than provided for, or even zero,
122 +in the event of a matching failure.
123 +Zero indicates that, while there was input available,
124 no conversions were assigned;
125 -typically this is due to an invalid input character,
126 +typically, this is due to an invalid input character,
127 such as an alphabetic character for a
130 @@ -455,14 +484,15 @@ the number of conversions which were suc