From owner-cvs-usrbin Sat Nov 16 20:17:36 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA25510 for cvs-usrbin-outgoing; Sat, 16 Nov 1996 20:17:36 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA25488; Sat, 16 Nov 1996 20:16:44 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vOydh-0001ZR-00; Sat, 16 Nov 1996 21:15:25 -0700 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: cvs commit: src/usr.bin/sed main.c Cc: bde@zeta.org.au (Bruce Evans), cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, joerg@freefall.freebsd.org In-reply-to: Your message of "Sun, 17 Nov 1996 03:50:18 +0100." <199611170250.DAA09732@uriah.heep.sax.de> References: <199611170250.DAA09732@uriah.heep.sax.de> Date: Sat, 16 Nov 1996 21:15:25 -0700 From: Warner Losh Message-Id: Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199611170250.DAA09732@uriah.heep.sax.de> J Wunsch writes: : As Bruce Evans wrote: : > Erm, as I told the submitter, this introduces C programmer's bug : > #: feof() is not valid until EOF has been read. : : Huh? I can't find any reference claiming this. feof is true as soon as the file gets to the end of the file. You needn't read the EOF for feof() to be true. In Pascal, that was the case, but not in C... Warner