NAME

cat_filelength - get the size of a file.

SYNOPSIS

#include <cat/catutil.h>

long cat_filelength(const char *path);

DESCRIPTION

Returns the length in bytes of the file pointed to by path or a negative code on error.

If path refers to anything other than an ordinary file, the function returns CAT_EFTYPE.

SEE ALSO

cat, catutil, cat_getfile, cat_filetime, cat_truncatefile, cat_lockfile, cat_lockfile, cat_unlockfile