INtime SDK Help
filelength

Gets the length in bytes of a file.

#include <io.h>

long filelength (int handle);

unsigned long64 _filelength64 (int handle);

Parameters

handle
Descriptor referring to an open file, as returned by creat.

Return Values

The file length in bytes.
Success.
-1. An invalid descriptor also sets errno to EBADF.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/io.h io.h clib.lib
   
See Also