blob: 78673e1e0753b602ae4cd25f6684235b368d5d61 [file] [log] [blame]
Zesstrab6ac9f62020-01-21 11:11:16 +01001SYNOPSIS
2 #include <files.h>
3
MG Mud User88f12472016-06-24 23:31:02 +02004 int file_size(string file)
5
Zesstra715ec202025-07-09 22:18:31 +02006DESCRIPTION
7 Returns the size of the file in bytes.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 Size FSIZE_NOFILE (-1) indicates that the file either does not exist,
10 or that it is not readable for the calling object/user.
11 Size FSIZE_DIR (-2) indicates that it is a directory.
MG Mud User88f12472016-06-24 23:31:02 +020012
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014SEE ALSO
15 write_file(E), write_bytes(E), read_file(E), read_bytes(E), get_dir(E)