al_update_fs_entry(3alleg5)

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

✨ al_update_fs_entry β€” Allegro 5 API ✨

okay bestie, welcome to the Allegro 5 API corner of the universe πŸ¦‹ this one's a lil function called al_update_fs_entry and she's lowkey a queen of keeping things fresh πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_update_fs_entry(ALLEGRO_FS_ENTRY *e)

πŸ’– DESCRIPTION πŸ’–

So basically, this function updates the file status information for a filesystem entry πŸ“βœ¨ Like, it goes and re-checks the vibes of that entry and refreshes what it knows.

Now here's the thing: that file status info gets updated automatically when the entry is created, no cap 🫢 so you don't gotta do anything at first. BUT β€” and this is the moment β€” you can update it again with this function if you want, like if it changed since then. Main character energy: staying current πŸ’β€β™€οΈ

It returns true on success and false on failure 😭 and when it fails it fills in errno to tell you what went wrong. So like, the receipts are always there, iykyk.

fr fr, check errno if you get a false back β€” that's where the tea is β˜•

πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie πŸ’œ this lil writeup lives in the Allegro reference manual, filed under al_update_fs_entry(3alleg5) β€” go forth and update ur entries, periodt πŸ‘‘

πŸ“¦ where this page comes from