The documentation says "the filehandle stays open" if PHYSFS_close() fails; implementation checks out (the handle remains unclosed on flush failure). How do I avoid leaking handles on error?
Note that in contrast, fclose() call from libc can fail, but the handle gets closed unconditionally (see second paragraph here). Wouldn't this be a more appropriate solution from API standpoint?
The documentation says "the filehandle stays open" if
PHYSFS_close()fails; implementation checks out (the handle remains unclosed on flush failure). How do I avoid leaking handles on error?Note that in contrast,
fclose()call from libc can fail, but the handle gets closed unconditionally (see second paragraph here). Wouldn't this be a more appropriate solution from API standpoint?