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 * closeiff.c - close the IFFHandle
18 /****** c_iff/CloseIFF ******************************************************
21 * CloseIFF -- Close an open IFF-file
24 * CloseIFF( TheHandle )
26 * void CloseIFF( struct IFFHandle * )
29 * Closes an IFF-file previously opened by OpenIFF() or NewIFF() .
32 * TheHandle - IFFHandle to close
45 *****************************************************************************
50 void CloseIFF(struct IFFHandle
*TheHandle
)
56 while(TheHandle
->LastNode
)
62 FixIFFSize(TheHandle
);
64 if(TheHandle
->TheFile
)
66 fclose(TheHandle
->TheFile
);
69 free((void *) TheHandle
);