al_rebase_path

bool al_rebase_path(const ALLEGRO_PATH *head, ALLEGRO_PATH *tail)
Introduced in 5.0.0

Concatenate two path structures, modifying the second path structure. If tail is an absolute path, this function does nothing. 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".

See also: al_join_paths

Examples: ex_path_test


Most helpful discussions: