This module a wrapper for the stdio.h header intended to make use of flash_utils.h in printf() automatically. More...
This module a wrapper for the stdio.h header intended to make use of flash_utils.h in printf() automatically.
| Files | |
| file | stdio.h | 
| stdio wrapper to extend the C libs stdio | |
| Macros | |
| #define | printf(...) | 
| A wrapper for the printf()function that passes arguments through unmodified, but fails to compile if the first argument is not a string literal. | |
| #define printf | ( | ... | ) | 
A wrapper for the printf() function that passes arguments through unmodified, but fails to compile if the first argument is not a string literal. 
See e.g. man 3 printf or https://linux.die.net/man/3/printf for documentation the printf function. This applies fully here, as it passes through the arguments unmodified.
The motivation for enforcing the first argument to be a string literal is three-fold:
Similar wrappers are also in place for vprintf(), fprintf(), vfprintf(), snprintf(), vsnprintf().