Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Printing the last item of a structure twice
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Rafael Anschau, post: 3910492"] Thanks Beej, that was it, a subtle semantic difference. Feof returns true if eof has been reached not if the pointer is set to the end of the file. I just read: "A stream "reaches the end" of a file not by arriving at the e-o-f position, but by trying (and failing) to go past that position." I would have done it differently but it´s not my lib. Thanks again. Rafael [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Printing the last item of a structure twice
Top