(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/iffparse.h>

void CloseIFF (iff)

LOCATION
In IFFParseBase at offset 8

SYNOPSIS
struct IFFHandle * iff

FUNCTION
Completes a read or write session by closing the IFF handle. The IFFHandle struct is ready for reuse in another session, it's just to open it again with OpenIFF(). This function also automatically cleans up if a read or write fails halfway through.

INPUTS
iff
Pointer to an IFFhandle struct previously opened with OpenIFF()

RESULT

EXAMPLE

SEE ALSO
OpenIFF(), InitIFF()

NOTES
This function tells the custom stream handler to clean up by sending it a IFFCMD_CLEANUP IFFStreamCmd.

BUGS

INTERNALS
This function checks that buffers for buffered streams have been freed. This is not very elegant and should have been done at an earlier stadium. It is not a real bug though.

HISTORY
20.10.1998 hkiel
Amiga Research OS
07.03.1997 digulla
Added patch by Nils Hendrik to avoid problems when CloseIFF() is called after OpenIFF() has failed.
07.03.1997 digulla
Fixed problem in CloseIFF() :-/
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen