al_set_path_filename(3alleg5)

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

✨ al_set_path_filename ✨

okay bestie, welcome to the allegro5 manual, Allegro 5 API edition πŸ’– this one's a lil function that goes by al_set_path_filename, and it's literally the glow-up your path object has been waiting for 🫢


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

void al_set_path_filename(ALLEGRO_PATH *path, const char *filename)

no return value, no drama, just vibes ✨


πŸ’… DESCRIPTION πŸ’…

so the whole point of this function is setting the optional filename part of the path. that's it. that's the job. she's a setter, she sets πŸŽ€

and here's the tea, bestie: filename is allowed to be NULL, and if you do that? it's equivalent to setting the filename to the empty string. same thing, no cap. so don't stress about which one to pick, they're literally twins πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

  • al_set_path_extension(3alleg5) β€” when you wanna change the extension instead, iykyk
  • al_get_path_filename(3alleg5) β€” the reverse queen, she reads what you wrote πŸ’œ

reminder bestie: the facts above are the whole facts. this page is just serving them with a lil more personality than usual πŸ“

and that's a wrap, gorgeous 🌈 this was brought to you by the Allegro reference manual, and it's the al_set_path_filename(3alleg5) page, so you know exactly where you are. no date stamped on this one, so consider this your timeless lil sign-off πŸ’–βœ¨ mwah, go set some filenames πŸŽ€

πŸ“¦ where this page comes from