]>
Commit | Line | Data |
---|---|---|
3d9156a7 A |
1 | --- wprintf.3.orig Fri Mar 11 17:09:07 2005 |
2 | +++ wprintf.3 Fri Mar 11 17:03:23 2005 | |
3 | @@ -87,6 +87,12 @@ | |
4 | write to the wide character string | |
5 | .Fa ws . | |
6 | .Pp | |
7 | +Extended locale versions of these functions are documented in | |
8 | +.Xr wprintf_l 3 . | |
9 | +See | |
10 | +.Xr xlocale 3 | |
11 | +for more information. | |
12 | +.Pp | |
13 | These functions write the output under the control of a | |
14 | .Fa format | |
15 | string that specifies how subsequent arguments | |
16 | @@ -224,6 +230,20 @@ | |
9385eb3d A |
17 | .Xr localeconv 3 . |
18 | .El | |
19 | .It | |
59e0d9fe | 20 | +An optional separator character ( |
9385eb3d | 21 | +.Cm \ , | \; | \ : | _ |
59e0d9fe | 22 | +) used for separating multiple values when printing an AltiVec vector, |
9385eb3d A |
23 | +or other multi-value unit. |
24 | +.Pp | |
25 | +NOTE: This is an AltiVec only extension onto the | |
26 | +.Fn printf | |
27 | +specification. | |
28 | +Behaviour of these values for | |
29 | +.Fn printf | |
30 | +is only defined for operating systems conforming to the | |
31 | +AltiVec Technology Programming Interface Manual. | |
32 | +(At time of writing this includes only Mac OS X 10.2 and later.) | |
33 | +.It | |
34 | An optional decimal digit string specifying a minimum field width. | |
35 | If the converted value has fewer characters than the field width, it will | |
36 | be padded with spaces on the left (or right, if the left-adjustment | |
3d9156a7 | 37 | @@ -314,6 +334,28 @@ |
9385eb3d A |
38 | .It Sy Modifier Ta Cm c Ta Cm s |
39 | .It Cm l No (ell) Ta Vt wint_t Ta Vt "wchar_t *" | |
40 | .El | |
41 | +.Pp | |
42 | +The AltiVec Technology Programming Interface Manual also defines five additional length modifiers | |
43 | +which can be used (in place of the conventional length modifiers) for the printing of AltiVec vectors: | |
44 | +.Bl -tag -compact | |
45 | +.It Cm v | |
46 | +Treat the argument as a vector value, unit length will be determined by the conversion | |
47 | +specifier (default = 16 8-bit units for all integer conversions, | |
48 | +4 32-bit units for floating point conversions). | |
49 | +.It Cm vh, hv | |
50 | +Treat the argument as a vector of 8 16-bit units. | |
51 | +.It Cm vl, lv | |
52 | +Treat the argument as a vector of 4 32-bit units. | |
53 | +.El | |
54 | +.Pp | |
55 | +NOTE: The vector length specifiers are AltiVec only extensions onto the | |
56 | +.Fn printf | |
57 | +specification. | |
58 | +Behaviour of these values for | |
59 | +.Fn printf | |
60 | +is only defined for operating systems conforming to the | |
61 | +AltiVec Technology Programming Interface Manual. | |
62 | +(At time of writing this includes only Mac OS X 10.2 and later.) | |
63 | .It | |
64 | A character that specifies the type of conversion to be applied. | |
65 | .El | |
3d9156a7 A |
66 | @@ -602,7 +644,8 @@ |
67 | .Xr putwc 3 , | |
68 | .Xr setlocale 3 , | |
69 | .Xr wcsrtombs 3 , | |
70 | -.Xr wscanf 3 | |
71 | +.Xr wscanf 3 , | |
72 | +.Xr wprintf_l 3 | |
73 | .Sh STANDARDS | |
74 | Subject to the caveats noted in the | |
75 | .Sx BUGS |