Files | |
file | otPrintf.h |
Printf Library. | |
Modules | |
Version History | |
printf - Code example | |
Functions | |
unsigned | printf (const char *fmt,...) |
Print formatted data to stdout. Writes the C string pointed by format to the standard output (stdout). If format includes format specifiers (subsequences beginning with ), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers. | |
unsigned | sprintf (char *buf, const char *fmt,...) |
Write formatted data to string. Composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer pointed by str. The size of the buffer should be large enough to contain the entire resulting string (see snprintf for a safer version). A terminating null character is automatically appended after the content. After the format parameter, the function expects at least as many additional arguments as needed for format. | |
unsigned | vsprintf (char *buf, const char *fmt, va_list args) |
Write formatted data from variable argument list to string. Composes a string with the same text that would be printed if format was used on printf, but using the elements in the variable argument list identified by arg instead of additional function arguments and storing the resulting content as a C string in the buffer pointed by s. Internally, the function retrieves arguments from the list identified by arg as if va_arg was used on it, and thus the state of arg is likely to be altered by the call. In any case, arg should have been initialized by va_start at some point before the call, and it is expected to be released by va_end at some point after the call. | |
unsigned | xformat (void(*outchar)(void *arg, char), void *arg, const char *fmt,...) |
unsigned | xvformat (void(*outchar)(void *arg, char), void *arg, const char *fmt, va_list args) |
Printf like format function. | |
void | setStdout (unsigned len, U8 chan) |
Init procedure. Call this function as first at program setup time. It allocate a buffer for printf functions and set the standard output. | |
void | stdOutLF () |
Send on standard out a line feed character. | |
char * | printfBuffer () |
Return pointer to printf buffer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Printf like format function. General format : [width][.precision][flags]type
Supported flags :
Supported type :
|
|
|