We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2981

Summary: SDL_RWeof() needed
Product: SDL Reporter: Nicholas <njkingsley>
Component: fileAssignee: Sam Lantinga <slouken>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.1   
Hardware: All   
OS: All   

Description Nicholas 2015-05-11 22:52:13 UTC
An end-of-file for the RW file functions would be handy.  At the moment, the only way to check for end-of-file for read-only/read-write files is to see if the file pointer is greater than the file size.  However, I can see this being a problem if the file size makes the return value go negative (due to being  a signed value) or the file size being 2^64 bytes
Comment 1 Sam Lantinga 2017-08-12 23:55:57 UTC
Agreed. Marking as assigned for SDL 2.1