al_remove_filename(3alleg5)
β¨ al_remove_filename β¨
okay bestie, welcome to the Allegro 5 API manual page for al_remove_filename π
this one is short, sweet, and honestly kinda iconic β let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_remove_filename(const char *path)
π¦ DESCRIPTION π¦
So likeβ¦ this function deletes the path you give it from the filesystem. That path can be a file or an empty directory, either one, no cap π
It's literally the same thing as al_remove_fs_entry(3alleg5), except this version wants the path handed to it as a string instead. Same energy, different delivery π
It returns true when it works out and false when it doesn't π and when it doesn't, Allegro's errno gets filled in so you can actually find out what went wrong. Periodt.
lowkey important: that directory has to be empty for this to work on it. just saying π
π SEE ALSO π
al_remove_fs_entry(3alleg5)β the sibling function, go say hi π
Allegro reference manual π the al_remove_filename(3alleg5) page β that's a wrap bestie, slay your file management journey π
β¨ππ¦π
π¦ 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