(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/iffparse.h>

LONG OpenIFF (iff , rwMode)

LOCATION
In IFFParseBase at offset 6

SYNOPSIS
struct IFFHandle * iff
LONG rwMode

FUNCTION
Initializes an IFFHandle struct for a new session of reading or writing. The direction of the I/O is determined by the rwMode flags supplied (IFFF_READ or IFFF_WRITE).

INPUTS
iff
pointer to IFFHandle struct.
ewMode
IFFF_READ or IFFF_WRITE

RESULT
error - 0 if successfull, IFFERR_#? elsewise.

EXAMPLE

SEE ALSO
CloseIFF(), InitIFF()

NOTES
This function tells the custom stream handler to initialize by sending it a IFFCMD_INIT IFFStreamCmd.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
10.03.1997 digulla
Fixed typos (Sorry :-( )
08.03.1997 ldp
Fix indents/add closing } bracket
07.03.1997 digulla
Added patch by Nils Hendrik to avoid problems when CloseIFF() is called after OpenIFF() has failed.
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen