Scroll to navigation

FILESIZE(3) Schily´s LIBRARY FUNCTIONS FILESIZE(3)

NAME

filesize() - returns size of file

SYNOPSIS


long filesize(f)
FILE *f;

DESCRIPTION

filesize() returns the file size in bytes.

RETURNS

>= 0
filesize.
< 0
an error code.

NOTES

If the file was written in the current process and was buffered, do a fflush() before using filesize() NOTE: The call does not work on terminals or other devices.

2022/09/09 Joerg Schilling