al_get_path_component(3alleg5)
β¨ NAME β¨
okay so bestie, welcome to al_get_path_component β it's giving Allegro 5 API energy, and it's literally here to hand you one little piece of a path π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
const char *al_get_path_component(const ALLEGRO_PATH *path, int i)
π DESCRIPTION π
so like, this function returns the i'th directory component of a path, and we're counting from zero β yes bestie, zero-indexed, that's the vibe π
if the index is negative, then you count from the right instead. so -1 refers to the last path component. periodt. π
β οΈ okay but for real, it is an error to pass an index which is out of bounds. like, don't do that. it's not the move. π«
π¦ SEE ALSO π¦
Allegro reference manual Β· al_get_path_component(3alleg5) β that's the whole page bestie, go slay some path components π
β¨π
π¦ 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