filesize2()

filesize2()#

Get the size of a file in bytes using a file descriptor.

Prototype

PUBLIC off_t filesize2(
    int         fd
);
        

Parameters

Key

Type

Description

fd

int

The file descriptor 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