static TPUTS_PROTO(outc, c) { int rc = c; rc = putc(c, my_fp); TPUTS_RETURN(rc); }
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); }