CuVoodoo STM32F1 firmware template
|
printing utilities to replace the large printf from the standard library (API) More...
Go to the source code of this file.
Functions | |
size_t | putc (char c) |
print a single character on user output More... | |
size_t | printf (const char *format,...) |
print format string on user output More... | |
size_t | snprintf (char *str, size_t size, const char *format,...) |
print format string on string or user output More... | |
printing utilities to replace the large printf from the standard library (API)
use % as format specifier prefix, followed by + to enforce sign of prefix, 0 and 0-9 for padding, and format specifier
format specifier supported are: c for char, s for string, u for uint32, d for int32, U for uint64, D for int64, x for lower case hex up to uint32, X for upper case hex up to uint32, b for bits up to uint32
Definition in file print.h.
size_t printf | ( | const char * | format, |
... | |||
) |
size_t putc | ( | char | c | ) |
size_t snprintf | ( | char * | str, |
size_t | size, | ||
const char * | format, | ||
... | |||
) |
print format string on string or user output
[out] | str | string to print format string on, or user output if str is set to NULL (str will always be terminated with a null character '\0') |
[in,out] | size | size of string (writes at most size characters on str, including the termination null character '\0') |
[in] | format | format string to be printed |
[in] | ... | arguments referenced by format string to be printed |