AL_REMOVE_PATH_COMPONENT(3)
π 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