コード例 #1
0
ファイル: test_vid_puts.c プロジェクト: dbetz/propgcc-ncurses
static
TPUTS_PROTO(outc, c)
{
    int rc = c;

    rc = putc(c, my_fp);
    TPUTS_RETURN(rc);
}
コード例 #2
0
ファイル: dots_mvcur.c プロジェクト: chitranshi/ncurses
static
TPUTS_PROTO(outc, c)
{
    int rc = c;

    if (interrupted) {
	char tmp = (char) c;
	if (write(STDOUT_FILENO, &tmp, 1) == -1)
	    rc = EOF;
    } else {
	if (putc(c, stdout) == EOF)
	    rc = EOF;
    }
    TPUTS_RETURN(rc);
}