bool al_fseek(ALLEGRO_FILE *f, int64_t offset, int whence)
Introduced in 5.0.0

Set the current position of the given file to a position relative to that specified by 'whence', plus 'offset' number of bytes.

'whence' can be:

Returns true on success, false on failure. errno is set to indicate the error.

After a successful seek, the end-of-file indicator is cleared and all pushback bytes are forgotten.

On some platforms this function may not support large files.

See also: al_ftell, al_get_errno

Examples: ex_memfile

Most helpful discussions: