stdcriff
stdcriff - routines to map the Standard C library to the RIFFIOFile
interface
.
You can provide these routines to
RIFFIOFileInit()
along with an
open Standard C Library (FILE *).
See the
the hello manpage
example.
Read bytes from a Standard C library file
long
STDCRIFFRead(void *pvUserFile, void *pvBuffer, long nBytes)
Write bytes to a Standard C library file
long
STDCRIFFWrite(void *pvUserFile, void *pvBuffer, long nBytes)
Seek to a specific position in a Standard C library file
RIFFIOSuccess
STDCRIFFSeek(void *pvUserFile, RIFFIOOffset offset, RIFFIOSeekOrigin origin)
Return the file position in a Standard C library file
long
STDCRIFFTell(void *pvUserFile)