al_fsize(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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