al_remove_filename(3alleg5)

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

✨ 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 πŸ‘‘


Allegro reference manual πŸ“– the al_remove_filename(3alleg5) page β€” that's a wrap bestie, slay your file management journey πŸ’…βœ¨πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from