dv_print.c

来自「一个c语言写做的编译器的源码」· C语言 代码 · 共 23 行

C
23
字号
/*@A (C) 1992 Allen I. Holub                                                */
#include <stdio.h>
#include <stdarg.h>
#include <curses.h>		/* For prnt() prototype	  */
#include <tools/debug.h>	/* For VA_LIST definition */
#include <tools/termlib.h>	/* For dv_putc definition */
#include "video.h"

void	dv_printf( attrib, fmt  VA_LIST )
int	attrib;
char	*fmt;
{
    /* Direct-video printf, characters will have the indicated attributes.  */
    /* prnt() is in curses.lib, which must be linked to your program if you */
    /* use the current function.					    */

    va_list args;

    va_start( args, fmt );
    prnt    ( dv_putc, attrib, fmt, args );
    va_end  ( args );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?