#define NOCCARGC #include clib.def extern int _status[]; /* ** Test for end-of-file status. ** Entry: fd = file descriptor ** Returns non-zero if fd is at eof, else zero. */ feof(fd) int fd; { return (_status[fd] & EOFBIT); }