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:
- Bug in allegro filestytem? I think that reads are drifting!
- Does PhysFS work for you with Allegro 5.2.2?
- Get binary stream of bitmap - al_save_bitmap_f() or something like this
- al_save_config_file_f() returns true when it shouldn't
- Allegro5 Save bitmap to byte array
- [A5] trouble writing ALLEGRO_BITMAP to zip file
- Android al_fseek() and al_ftell() Not Working
- Encrypt / Decrypt PNG
- [A5] loading multiple images stored in a single .dat