Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

wprintf(3) OSS Library Calls Reference Manual
specified). The E conversion character produces a number with upper-
case E instead of lowercase e before the exponent. The exponent always
contains at least two digits. If the value is 0 (zero), the exponent is 0
(zero).
g or G Accepts a float or double value and converts it in the style of the e, E,or
f conversion characters, with the precision specifying the number of
significant digits. Trailing zeros are removed from the result. A radix
character appears only if it is followed by a digit (except that it always
appears if the # flag is specified). The style used depends on the value
converted. Style e (E,ifG is the flag used) results only if the exponent
resulting from the conversion is less than -4, or if it is greater or equal to
the precision.
a or A Accepts a double value converts it to the exponential form
[-]0xh.hhhp+/-d. There is one digit before the radix character and the
number of digits after it is equal to the precision; when the precision is
missing, 13 digits are produced for double and 28 for long double
(which is sufficient for an exact representation of the value); if the preci-
sion is 0, no radix character appears. The letters abcdef are used for a
conversion and the letters ABCDEF for A conversion. The A converison
specifier produces a number with X and P instead of x and p. The
exponent always contains at least one digit, and only as many more
digits as necessary to represent the decimal exponent of 2. If the value is
zero, the exponent is zero.
c Accepts and prints an integer (int) value converted to an unsigned char.
C or lc Accepts a wchar_t value, converts it to an array of bytes containing a
multibyte character, and prints it. If a minimum field width is specified
and the multibyte character occupies fewer bytes than the specified
width, the multibyte character is padded with space characters to the
specified width.
For TNS/E systems only, the behavior of lc is the same as the behavior
of C.
s Accepts a pointer to an array of char type. Bytes from the array are
printed until a null character is encountered or the number of characters
indicated by the precision is reached. If no precision is specified, all
characters up to the first null character are printed. If the precision is not
specified or is greater than the size of the array, then the array must be
terminated by a null byte. If the string pointer value has a value of 0
(zero) or null, the results are undefined.
S or ls Accepts
a
pointer to an array of wchar_t type. Wide characters from the
array are converted to an array of bytes containing multibyte characters
and the multibyte characters up to (but not including) the null character
are printed. If a precision is specified, then no more than the number of
bytes specified by the precision are printed. If the precision is not
specified or is greater than the size of the array of bytes, then the array of
wide characters must be terminated by a null wide character. If a
minimum field width is specified and the array of bytes occupy fewer
bytes than the specified width, the array is padded with space characters
878 Hewlett-Packard Company 527187-017