al_ftell

int64_t al_ftell(ALLEGRO_FILE *f)
Introduced in 5.0.0

Returns the current position in the given file, or -1 on error. errno is set to indicate the error.

On some platforms this function may not support large files.

See also: al_fseek, al_get_errno

Examples: ex_memfile


Most helpful discussions: