filelength()

Retrieves the file length based on a file handle.

  #include <extras/extras_io.h>
  
  int filelength(int fileno);    
Parameter

fileno

A file handle.

Remarks

If successful, this function returns a file's length. If it fails, the function returns -1. This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.

This facility may not be available on some configurations of the EWL.