2 * c_iff - a portable IFF-parser
4 * Copyright (C) 2000, 2001 Joerg Dietrich
6 * This is the AROS-version of c_iff.
7 * It is distributed under the AROS Public License.
8 * But I reserve the right to distribute
9 * my own version under other licenses.
13 * skipchunkdata.c - skip the data of the actual chunk
18 /****** c_iff/SkipChunkData *************************************************
21 * SkipChunkData -- Skip the entire current chunk
24 * Success = SkipChunkData( TheHandle )
26 * int SkipChunkData( struct IFFHandle * )
29 * Skips the entire current chunk.
30 * You can continue to ReadChunkHeader() the next chunk.
33 * TheHandle - IFFHandle to skip
36 * Success - TRUE when successfully skiped to the end of the chunk
42 * To skip a chunk you have to start this chunk with
48 * ReadChunkHeader() ReadChunkData()
50 *****************************************************************************
55 int SkipChunkData(struct IFFHandle
*TheHandle
)
62 if(!TheHandle
->BytesLeftInChunk
)
67 if(fseek(TheHandle
->TheFile
, TheHandle
->BytesLeftInChunk
, SEEK_CUR
))
72 TheHandle
->ChunkID
=INVALID_ID
;
73 TheHandle
->BytesLeftInChunk
=0;