English
Language : 

ZAURA Datasheet, PDF (86/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
74
Additional Conversion Flag formatting information can be added between
the '%' symbol and the letter that follows it. This extra formatting can be
represented by any of the symbols defined in the following table.
Conversion
Flag
1 to 9
*
0
-
Meaning
Description
Minimum field width (1 to 9
characters)
Conversion is left-padded with spaces until the
output reaches the specified minimum field width.
Can be combined with '0' conversion flag to pad
with leading zeros instead of spaces (for 'd', 'u' and
'x' numeric conversions). Unlike standard printf
only a single-digit field width can be specified.
Minimum field width (1 to 255 Used to specify minimum field widths larger than 9
characters)
characters. Can be combined with '0' conversion
flag to pad with leading zeros instead of spaces
(for 'd', 'u' and 'x' numeric conversions). The field
width is specified in the variable arguments list.
Zero left-pad
Used with either of the previous two flags to
specify that left padding for numeric conversions
should use leading zeros instead of spaces. Has
no effect is used with 'c' or 's' conversion flags.
Left justify
By default ZAURA_RF_ShellPrintf will right justify
the output if a minimum field width is specified and
the converted value is narrow than the specified
minimum. This flag cause the output to be left
justified (right-padded). With left justification, the
pad character is always a space (' '), even if the 0
flag is specified.
ZAURA RF Wireless Shell API Reference
RM006003-1011