GetChunk

Finds a chunk of specified chunk ID

Synopsis

char *GetChunk (ulong chunk_ID, char **buffer, long *bufLen)

Description

Searches buffer until it finds chunk_ID. On exit, updates the buffer pointer that is to point to the next chunk and bufLen to contain the number of bytes remaining in the buffer.

Arguments

chunk_ID
ID of the chunk you are looking for.
*buffer
Pointer to the buffer you are looking for.
bufLen
Number of bytes in the buffer that follow the chunk.

Return Value

Returns NULL or a pointer to the chunk.