BSD 1 development
[unix-history] / portlib / ceof.c
CommitLineData
520d5775
EA
1# include "iodec.h"
2
3/**
4 ** report end of file conditions
5 **/
6
7ceof(fn)
8int fn;
9{
10 register struct fileps *fp;
11
12 if (fn < 0 || fn >= MAXFILES)
13 __error("ceof: bad file number %d", fn);
14 fp = &__filehdr[fn];
15 if (fp->eoferr > 0)
16 return (1);
17 return (0);
18}