X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Mon, 20 Dec 2004 17:22:24 -0500 Message-Id: <200412202222.iBKMMO7s009551@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <89jes0tf1auvn3p360ue9c2hs55itdvicn@4ax.com> (message from Radical NetSurfer on Mon, 20 Dec 2004 17:09:59 -0500) Subject: Re: v2.953 Additional Observations References: <200412190006 DOT iBJ06ike016912 AT envy DOT delorie DOT com> <89jes0tf1auvn3p360ue9c2hs55itdvicn AT 4ax DOT com> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk If EOF is encountered, the number of *successful* items read is returned. The last one, if partial, was not successful, so it is not included in the count. Thus, if you read 4-byte integers from a 15 byte file, the return value is 3 and feof() would return true.