TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Jay Truesdale 72176,3565 (X)
from: James Jones 76257,562
date: 1990-10-27 16:09:44
subject: #7796-#C loop

#: 7803 S3/Languages
    27-Oct-90  16:09:44
Sb: #7796-#C loop
Fm: James Jones 76257,562
To: Jay Truesdale 72176,3565 (X)

C standard I/O is set up such that feof(fp) is true, aside from questions of
attempts to explicitly set or clear it outside of library code, only when one
has attempted to read past the end of the file.  The standard I/O routines
don't attempt to tell whether the current read has read the last byte of the
file and set the EOF flag in the FILE structure in that case, which is what
would have to happen for the code in your message to behave the way you
expected.

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.