Schily's LIBRARY FUNCTIONS FILESIZE(3)
filesize() - returns size of file
long filesize(f) FILE *f;
filesize() returns the file size in bytes.
>= 0 filesize. < 0 an error code.
If the file was written in the current process and was buf- fered, do a fflush() before using filesize() NOTE: The call does not work on terminals or other devices. Joerg Schilling Last change: 15. Juli 1988 1