Embedded TCP/IP stack
4.7.0
|
fnet_size_t fnet_shell_printf | ( | fnet_shell_desc_t | desc, |
const fnet_char_t * | format, | ||
... | |||
) |
Prints formatted text to the shell stream.
desc | Shell service descriptor. |
format | Format string. |
This function outputs formatted text to the shell stream.
The function takes one or more arguments. The first argument is a string parameter called the "format string". The optional arguments following format
are items (integers, characters or strings) that are to be converted to character strings and inserted into the output of format
at specified points.
The syntax for a format placeholder is "%[Flags][Width][Length]Type".
-
: Left justify.+
: Right justify.0
: Pad with leading zeros.h
: Short integer.l
: Long integer.d
, i
: Integer.u
: Unsigned.x
, X
: Hexadecimal.o
: Octal.b
: Binary.p
: Pointer.c
: Single char.s
: Char string.n
: Nothing.