long file_size (FILE *file) { long size; /* Seek to end */ seek_end (file); size = tell_position (file); rewind (file); return (size); }
unsigned int FileLibC::get_len() { if (!f) return 0; int pos = get_pos(); seek_end(); int size = get_pos(); seek(pos); return size; }