filesize2()
#
filesize2()
returns the size of an open file descriptor in bytes.
Prototype
off_t filesize2(int fd);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The file descriptor of the open file. |
Return Value
Returns the size of the file in bytes. If an error occurs, returns 0.
Notes
This function uses fstat()
to retrieve the file size.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples