Synopsis
#include <stdio_c.h>
int printf_c(__code const char *format, ...);
Description
printf_c writes to the standard output stream using putchar, under control of the string pointed to by format that specifies how subsequent arguments are converted for output. The format string is stored in flash (code) memory.
If there are insufficient arguments for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.
printf_c returns number of characters transmitted, or a negative value if an output or encoding error occurred.
Notes
printf_c is identical in function to printf except that the format string is stored in code memory.
Portability
printf_c is an extension provided by CrossWorks C.