Embedded TCP/IP stack
4.7.0
|
fnet_size_t fnet_vprintf | ( | const fnet_char_t * | format, |
va_list | arg | ||
) |
Print formatted variable argument list to the default stream.
format | Format string. |
arg | Variable arguments list. It shall have been initialized by va_start() macro |
This function outputs formatted text to the default stream, expanding the format placeholders with the value of the argument list arg
.
This function behaves exactly as printf
except that the variable argument list is passed as a va_list
instead of a succession of arguments, which becomes specially useful when the argument list to be passed comes itself from a variable argument list in the calling function.
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.