SYNOPSIS

  • #include <allegro5/allegro.h>
    
    bool al_join_paths(ALLEGRO_PATH *path, const ALLEGRO_PATH *tail)
    
    

DESCRIPTION

Concatenate two path structures. The first path structure is modified. If \[aq]tail\[aq] is an absolute path, this function does nothing.

If \[aq]tail\[aq] is a relative path, all of its directory components will be appended to \[aq]path\[aq]. tail\[aq]s filename will also overwrite path\[aq]s filename, even if it is just the empty string.

Tail\[aq]s drive is ignored.

Returns true if \[aq]tail\[aq] was a relative path and so concatenated to \[aq]path\[aq], otherwise returns false.

RELATED TO al_join_paths…

al_rebase_path(3alleg5)