#define NOCCARGC #include stdio.h #include clib.def extern int _status[]; /* ** Clear error status for fd. */ clearerr(fd) int fd; { if(_mode(fd)) _status[fd] &= ~ERRBIT; }