(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/iffparse.h>

LONG ReadChunkRecords (iff , buf , bytesPerRecord , numRecords)

LOCATION
In IFFParseBase at offset 12

SYNOPSIS
struct IFFHandle * iff
APTR buf
LONG bytesPerRecord
LONG numRecords

FUNCTION
Read a number of records with the given size from the current chunk into a buffer. Attempts to read past the end of the chunk will be truncated.

INPUTS
iff
pointer to IFFHandle struct.
buf
pointer to a buffer into which the data will be placed.
bytesPerRecord
number of bytes per record.
numRecords
number of records to read.

RESULT
actual - (positive) the actual number of whole records read. (negative) IFFERR_#? error code if not succesfull.

EXAMPLE

SEE ALSO
ReadChunkBytes(), ParseIFF(), WriteChunkRecords()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen