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 - SDL_RWeof() needed
Summary: SDL_RWeof() needed
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 22:52 UTC by Nicholas
Modified: 2017-08-12 23:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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