Command: PRINTF

USAGE /printf [-{0|1|2|3}] format args..
DESCRIPTION Print arguments according to format specification (like 'C' printf).
%x %X  : format argument as lowercase/uppercase hexadecimal number
%d %u  : format argument as decimal number (signed/unsigned)
%s     : format argument as a string
%Ns    : N is a decimal number or '*', specifies padding width. * reads padding from respetive argument list
%.Ms   : M is a decimal number or '*', specifies maximum item length. * reads max length from respetive argument list
%N.Ms  : truncate string to M chars and pad to length N
%-Ns   : string is left aligned, padding to the right
%+Ns   : string is right aligned, padding to the left (default if +/- is missing)
%|Ns   : string is centered, padding on both sides
%0Ns   : pad with zero characters
%[C]Ns : pad with C character, C can be any character
\[rnt] : replace with  carriage return, line feed, and tab
  		
PARAMETER
NameDescriptionRequired
output channel select output channels
0 = no output
1 = stdout
2 = logfile
3 = stdout and log file
No
format Format string. Yes
args.. Arguments to print according to the format string. Yes
EXAMPLE
>  /printf "Test for hex: %x%X\n" 122 122
Test for hex: 7a7A

>  /printf "Test for hex: %x %X\n" 122 122
Test for hex: 7a 7A

>  /printf "Test for num: %d %u\n" 122 122
Test for num: 122 122

>  /printf "Test for num: %d %u\n" -122 -122
Test for num: -1 2147483647
CONDITIONS None.