fscanf and fprintf (fwd)

Ryan C. Gordon icculus at clutteredmind.org
Fri Feb 14 21:31:03 EST 2003

(I haven't looked at this yet, but if anyone needs it in the meantime...)


---------- Forwarded message ----------
Date: Fri, 7 Feb 2003 11:24:27 -0000
From: Tree <tree at stain.org>
To: "icculus at clutteredmind.org" <icculus at clutteredmind.org>
Subject: fscanf and fprintf

Hi there,

    I've attached a file that is based on the extras\abs_file.h file. I've
added ftell, fseek, fprintf and fscanf to the methods supported. I have
also added a more generalise open method. I changed the macro names, but
that was just my preference for analogous names.

Some of the code may be more appropriate in PHYSFS itself like the fscanf
and fprintf methods, as they are generally useful.

I also had to add a vsscanf method for Windows (I'm using XP), as the
microsoft common libs don't support it. I believe it exists on pretty much
any other platform. The one I've added has a limitation on it of only
parsing up to 10 params.

It's up to you what you want to do with this file, if anything, but I
think it would be nice to have the fprintf and fscanf in the PHYSFS core.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FileHandling.h
URL: <http://icculus.org/pipermail/physfs/attachments/20030214/dda5ee57/attachment.diff>

More information about the physfs mailing list