/* * Printing (to console) */ void vprintf(const char *fmt, va_list args) { struct printf_state state; state.index = 0; doprnt(fmt, args, 0, putchar, (char *) &state); if (state.index != 0) flush(&state); }
///// write formatted data to lcd, similar to printf statement void lcdPrintf (char *pcFormat,...) { doprnt ( lcdPutc,pcFormat,&pcFormat+1,NULL, NULL, NULL ); }