Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Tue, 13 Dec 2016 12:39:21 -0600 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: while loop vs do while loop reading from the file issue References: <52f1c174-6af1-4fda-9ff8-a5e2cf507b5f@googlegroups.com> <87y3znz1rw.fsf@bsb.me.uk> <878trmxufh.fsf@bsb.me.uk> <87d1gyw8s6.fsf@bsb.me.uk> <87inqpucmw.fsf@bsb.me.uk> <87fultqnuz.fsf@bsb.me.uk> <87bmwgpxbs.fsf@bsb.me.uk> <87mvg0o6hk.fsf@bsb.me.uk> Date: Tue, 13 Dec 2016 18:39:21 +0000 Message-ID: <871sxbznae.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:wo+23qcN3l9ePTnHhng1uCQ7PE4= MIME-Version: 1.0 Content-Type: text/plain Lines: 8 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-YihcNv0zbwmjTW2SjtFapNWu7MavIUF8ZkUTmtVn9FMCHonn98e8cgMb1jOzNQmkqfEl8nRuuLTFT3O!RVeMPqPrA76shV4j9W0ExyCdS/zqU141642+eV0JKn5+QOpjGVxKhfLM8AlnQQ9wnuvV X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1894 Xref: csiph.com comp.lang.c:99225 Richard Heathfield writes: > line 9 will be read as an empty string, so you say your next eof check > will be true, and so the program will never report lines 10 and 11, > and so we lose the war. Okay... Bart doesn't read the daily intelligence briefs because he's, you know, a smart guy.