Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!columbia!rutgers!sri-spam!ames!sdcsvax!ucbvax!DMZRZU71.BITNET!schoepf From: schoepf@DMZRZU71.BITNET Newsgroups: comp.sys.atari.st Subject: Re: Lattice C & full disks Message-ID: <8707151532.AA26292@ucbvax.Berkeley.EDU> Date: Wed, 15-Jul-87 11:33:20 EDT Article-I.D.: ucbvax.8707151532.AA26292 Posted: Wed Jul 15 11:33:20 1987 Date-Received: Fri, 17-Jul-87 06:19:36 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 12 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