ftello
ftello is a function in the C standard library (POSIX) that returns the current file position indicator for a given stream. The value represents the offset, in bytes, from the beginning of the file and is returned as an off_t type. It serves as a large-file–capable alternative to ftell, which historically uses a long int and may be unable to represent large offsets on some platforms.
Compared with ftell, ftello uses the off_t offset type, allowing it to represent larger file positions on
Return value and errors: On success, ftello returns the current offset as an off_t value. On error,
Usage notes: To reposition within a file, programs commonly pair ftello with fseeko, or use ftello to