al_update_fs_entry(3alleg5)
β¨ 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, checkerrnoif you get afalseback β that's where the tea is β
π SEE ALSO π
al_get_errno(3alleg5)al_get_fs_entry_atime(3alleg5)al_get_fs_entry_ctime(3alleg5)al_get_fs_entry_mode(3alleg5)
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
- 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