al_rebase_path(3alleg5)

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

πŸ’– NAME πŸ’–

okay so this is al_rebase_path(3alleg5) from the Allegro 5 API β€” and it's giving path-gluing main character energy. 🫢


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_rebase_path(const ALLEGRO_PATH *head, ALLEGRO_PATH *tail)

🌸 DESCRIPTION 🌸

bestie, listen: al_rebase_path concatenates two path structures, and it modifies the second path structure. So head is the first one, tail is the second one, and tail is the one catching the glow-up. πŸ’…

⚠️ If tail is an absolute path, this function does nothing. It just sits there. No cap.

Otherwise, the drive and path components in head are inserted at the start of tail. πŸŽ€

For example, if head is /anchor/ and tail is data/file.ext, then after the call tail becomes /anchor/data/file.ext. iconic, honestly. ✨


πŸ”₯ SEE ALSO πŸ”₯


this page came from the Allegro reference manual β€” Allegro 5, al_rebase_path(3alleg5) β€” and the footer didn't stamp a date on it, so that's the whole tea. periodt. πŸ’…πŸ¦‹

πŸ“¦ where this page comes from