1: # include "ciodec.c" 2: ceof (fn) 3: int fn; 4: { 5: struct fileps *fp; 6: fp = &IEH3fpts[fn]; 7: if (fp->wrflag > 0 && fp->eoferr == 2) 8: return(1); 9: else return(0); 10: } 11: cerr (fn) 12: int fn; 13: { 14: struct fileps *fp; 15: fp = &IEH3fpts[fn]; 16: if (fp->eoferr == 0) fp->eoferr = 1; 17: if (fp->wrflag > 0 && fp->eoferr == 3) 18: return(1); 19: else return(0); 20: }