##### Synopsis

    #include <stdio_c.h>
    int vprintf_c(__code const char *format, va_list arg);

##### Description

vprintf_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. Before calling vprintf_c, arg must be initialized by the va_start macro (and possibly subsequent va_arg calls). vprintf_c does not invoke the va_end macro.

vprintf_c returns number of characters transmitted, or a negative value if an output or encoding error occurred.

##### Notes

vprintf_c is equivalent to printf with the variable argument list replaced by arg and with the format string is stored in code memory.

##### Portability

vprintf_c is an extension provided by CrossWorks C.

##### See Also

Format strings for printf functions