Embedded TCP/IP stack
4.7.0
|
fnet_size_t fnet_printf | ( | const fnet_char_t * | format, |
... | |||
) |
Print formatted text to the default stream.
format | Format string. |
This function outputs formatted text to the default stream, its descriptor is defined by FNET_SERIAL_STREAM_DEFAULT.
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 placeholders. The number of arguments following the format
parameters should at least be as much as the number of format placeholders.
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.