file_size

ldmud-3.3.719/doc/efun/file_size · 393 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
        #include <sys/files.h>

        int file_size(string file)

DESCRIPTION
        Returns the size of the file in bytes.

        Size FSIZE_NOFILE (-1) indicates that the file either does not exist,
        or that it is not readable for the calling object/user.
        Size FSIZE_DIR (-2) indicates that it is a directory.

SEE ALSO
        write_file(E), cat(E), get_dir(E)

Site Stats

Snippets: 1791
Codebases: 571