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 * filesize.c - get the size of a file
18 /****** c_iff/FileSize ******************************************************
21 * FileSize -- Get the Size of a file
24 * Size = FileSize( TheFile )
26 * size_t FileSize( FILE * )
29 * Returns the size of the given file.
32 * TheFile - the file to count
35 * Size - size of the file
36 * or 0 when an error occurs
41 * This is a support function. It has very few to do with c_iff.
47 *****************************************************************************
52 size_t FileSize(FILE *TheFile
)
62 CurPos
=ftell(TheFile
);
68 if(fseek(TheFile
, 0, SEEK_END
))
79 if(fseek(TheFile
, CurPos
, SEEK_SET
))