delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/20/17:22:50

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 <dj AT delorie DOT com>
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: <boo8s01asckvrn9mb24hdl9fkjjq3bqq1g AT 4ax DOT com> <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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019