file_size()
#
Retrieve the size of a file at the specified path in bytes.
Prototype
PUBLIC off_t file_size(
const char *path
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The path of the file to query. |
Return Value
Returns the size of the file in bytes, or a negative value on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples