fs_file_size

off_t fs_file_size(const char *path)

Gets the size of an existing file.

off_t size = fs_file_size("foo.txt")
printf("file size: %d", size);

Parameters

path[in] Some null-terminated path

Returns

The size of the file, in bytes