예제 #1
0
void
vexLcdPrintfAt( int16_t display, int16_t line, int16_t col, char *fmt, ... )
{
    va_list args;

    va_start(args, fmt);

    //vsprintf(lcd_buffer, fmt, args );
    vex_vsnprintf(lcd_buffer, LCD_BUF_MAX, fmt, args );

    vexLcdSetAt( display, line, col, lcd_buffer );

    va_end(args);
}
예제 #2
0
파일: apollo.c 프로젝트: Impact2585/convex
static void
vt100_printf( char *fmt, ... )
{
    static  char    buffer[64];
    int     i;

    va_list args;

    va_start(args, fmt);

    vex_vsnprintf(buffer, 64, fmt, args );

    for(i=0;i<64&&buffer[i] != 0;i++ )
        vt100_putchar( buffer[i] );

    va_end(args);
}