C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
_filelength
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <io.h>, <errno.h>
 
  Syntax:    long _filelength( int handle );
 
  Returns:   the file length in bytes, or -1L if an error occurs.
             errno: EBADF
 
  See also:  _chsize, _fstat, _fileno
                                    -♦-