al_ffblk_get_size(3alleg4)

πŸ’– al_ffblk_get_size β€” bestie edition πŸ’–

okay so this is a page from the Allegro manual, and it's the one about al_ffblk_get_size, a little function living inside the Allegro game programming library. it's giving "small but essential," fr fr 🌸


✨ NAME ✨

al_ffblk_get_size β€” get the size of the file that got returned by al_findfirst / al_findnext. yes that's the whole job and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

uint64_t al_ffblk_get_size(struct al_ffblk *info);

🌈 DESCRIPTION 🌈

so here's the tea πŸ“: this one hands you back the size of the file that was returned by al_findfirst or al_findnext. that's it. that's the function. she's not complicated, she's just reliable 😭

you pass in your struct al_ffblk *info β€” that same block you got from searching β€” and boom, you get a uint64_t with the size. no cap. ✨


πŸ‘‘ SEE ALSO πŸ‘‘


ngl, if you're using this function you probably already have your al_ffblk in hand, so go forth and measure those files, queen πŸ‘‘

anyway that's the page, short and sweet, we love a concise icon ⭐

πŸ’– written for Allegro version 4.4.3, mwah, slay, bye bestie πŸ’–