home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
SMALL_C
/
FEOF.C
< prev
next >
Wrap
Text File
|
1987-10-04
|
384b
|
13 lines
#define NOCCARGC /* no argument count passing */
#include clib.def
extern int Ustatus[];
/*
** 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 (Ustatus[fd] & EOFBIT);
}