al_join_paths(3alleg5)

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

πŸ’– NAME πŸ’–

hey bestie, welcome to the al_join_paths(3alleg5) page from the Allegro reference manual! This one is all about al_join_paths β€” Allegro 5 API, and it's lowkey iconic for path girlypops.


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_join_paths(ALLEGRO_PATH *path, const ALLEGRO_PATH *tail)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture two path structs, and we're gonna concatenate them. The first path structure, path, gets modified. She's the main character and she's changing in place, periodt.

If tail is an absolute path, this function does nothing. Like, absolutely nothing, no cap. It just sits there looking pretty.

If tail is a relative path, then all of its directory components get appended to path. Also, tail’s filename will overwrite path’s filename β€” even if it is just the empty string. Yes bestie, even "" is out here overwriting things. πŸ’…

Tail’s drive is ignored. Not invited to the function, not on the guest list, bye. πŸ™ˆ

It returns true if tail was a relative path and so concatenated to path; otherwise it returns false. So like, a little bool vibe check for you.


πŸ‘‘ SEE ALSO πŸ‘‘


xoxo, signing off from the Allegro reference manual β€” al_join_paths(3alleg5) β€” and the footer didn't give me a date, so that's all she wrote πŸŽ€πŸ’–

πŸ“¦ where this page comes from