is there any way to use fscanf and fprintf on a PHYSFS text file handle?
You would have to use some varargs and call PHYSFS_read() or PHYSFS_write()
appropriately. I just looked and found this old implementation of such:
http://icculus.org/pipermail/physfs/2003-February/000148.html
Be warned that there are some issues with that patch (C++, vsprintf vs.
vsnprintf, arg count limits, and perhaps more).
Jonny DOn Wed, Jun 25, 2014 at 11:25 PM, javierecf wrote:
is there any way to use fscanf and fprintf on a PHYSFS text file handle?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
gonna check it out, thanks.
2014-06-26 1:16 GMT-06:00 Jonathan Dearborn :> You would have to use some varargs and call PHYSFS_read() or
PHYSFS_write() appropriately. I just looked and found this old
implementation of such:
fscanf and fprintf (fwd)Be warned that there are some issues with that patch (C++, vsprintf vs.
vsnprintf, arg count limits, and perhaps more).Jonny D
On Wed, Jun 25, 2014 at 11:25 PM, javierecf <@Javier_Flores> wrote:
is there any way to use fscanf and fprintf on a PHYSFS text file
handle?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Javier Flores
If you’re only compiling with glibc, you can use fopencookie() to get a
FILE*.
? DavidOn 26/06/14 11:25, javierecf wrote:
is there any way to use fscanf and fprintf on a PHYSFS text file handle?