[comp.sys.atari.st] Lattice C & full disks

schoepf@DMZRZU71.BITNET (07/15/87)

Lattice C (3.03) sets the eof flag if it cannot write all characters to the
file. Use feof() instead of ferror(), or better something like
         if (ferror(fp) || feof(fp)) ...

      Rainer Schoepf
      Inst. f. Physik
      Universitaet Mainz
      Staudinger Weg 7
      D-6500 Mainz
      West Germany
      <SCHOEPF@DMZRZU71.BITNET>