Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (n - r) printf(3)
- Left align within the field the result of the conversion.
+ Begin the result of a signed conversion with a sign (+ or -).
(space) Prefix a space character to the result if the first character of a signed
conversion is not a sign. If both the (space) and + flags appear, the
(space) flag is ignored.
# Convert the value to an alternate form. For o conversion, it increases the
precision to force the first digit of the result to be a 0 (zero). For x and X
conversions, a nonzero result has 0x or 0X prefixed to it. For e, E, f, g,
and G conversions, the result always contains a radix character, even if
no digits follow it. For g and G conversions, trailing zeros are not
removed from the result. For c, C, d, i, s, S, and u conversions, the flag
has no effect.
0 Pad to field width using leading zeros (following any indication of sign
or base) for d, e, E, f, g,G, i, o, u, x, and X conversions; no space pad-
ding is performed. If the 0 and - (dash) flags both appear, the 0 flag will
be ignored. For d, i, ou, x, and X conversions, if a precision is specied,
the 0 flag is also ignored. For other conversions, the behavior is
undefined.
An optional decimal digit string that specifies the minimum field width. If the converted
value has fewer characters than the field width, the field is padded on the left to the
length specified by the field width. If the left-adjustment flag is specified, the field is pad-
ded on the right.
A field width can be indicated by an * (asterisk) instead of a digit string. In this case, an
integer (int) value parameter supplies the field width. The value
parameter converted for
output
is not fetched until the conversion letter is reached, so the parameters specifying
field width or precision must appear before the value (if any) to be converted. If the
corresponding parameter has a negative value, it is treated as a - (dash) left alignment
option followed by a positive field width. When variable ordering with the Ldigit$ for-
mat is used, the * (asterisk) specification for field width in precision is replaced by
*digit$.
An optional precision. The precision is a . (dot) followed by a decimal digit string. If no
precision is given, it is treated as 0 (zero). The precision specifies:
The minimum number of digits to appear for the d, u, o, x,orX conversions.
The number of digits to appear after the radix character for the e, E, and f
conversions.
The maximum number of significant digits for the g and G conversions.
The maximum number of bytes to be printed from a string in the s or S conver-
sion.
A field precision can be indicated by an * (asterisk) instead of a digit string. In this case,
an integer (int) value parameter supplies the field precision. The value parameter con-
verted for output is not fetched until the conversion letter is reached, so the parameters
specifying field width or precision must appear before the value (if any) to be converted.
If the value of the corresponding parameter is negative, it is treated as if the precision
had not been specified. When variable ordering with the Ldigit$ format is used, the *
(asterisk) specification for field width in precision is replaced by *digit$.
527192-018 Hewlett-Packard Company 553