AL_REMOVE_PATH_COMPONENT(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ al_remove_path_component(3) πŸŽ€

okay so bestie, this little icon is from the Allegro 5 API and lives in the Library Functions Manual. Short page, very "I have one job and I do it", and honestly? Obsessed. πŸ’…

✨ NAME ✨

al_remove_path_component β€” Allegro 5 API

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

void al_remove_path_component(ALLEGRO_PATH *path, int i)

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this function deletes the *i*’th directory component from path. Just poof β€” one component gone, slay. 🫢

If the index is negative, it counts from the right instead, so -1 refers to the last path component. Cute, right? Lowkey iconic. ✨

🚨 But bestie, heed this: it is an error to pass an index which is out of bounds. Do not do it. That's the whole warning, no cap. πŸ’€

🌈 SEE ALSO 🌈


And that's the whole page, bestie β€” straight from the Allegro reference manual, al_remove_path_component(3). The footer doesn't show a date, so I'm not inventing one; fr fr. πŸ’–βœ¨πŸ’…

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms