al_fsize(3alleg5)
β¨ NAME β¨
al_fsize β Allegro 5 API π
okay so this is al_fsize from the Allegro 5 manual, page al_fsize(3alleg5), and bestie it's literally one job: tell you how big a file is π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int64_t al_fsize(ALLEGRO_FILE *f)
look at that signature β takes a pointer to an ALLEGRO_FILE, hands you back an int64_t. chef's kiss π
π¦ DESCRIPTION π¦
So like, al_fsize returns the size of the file, if it can be determined. That's the whole vibe. β¨
But if it can't be determined? Then it gives you -1 instead. No cap, that's the fallback. So when you call it, always be ready for that -1 β it's giving "sorry bestie, unknown" energy π
and that's the whole page, fr fr π«Ά
this was pulled from the Allegro reference manual, page al_fsize(3alleg5) β go forth and check ur file sizes, you icon ππ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms