---
name: "al_rebase_path"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_rebase_path/3alleg5"
---

# al\_rebase\_path(3alleg5)

Allegro 5 API

## NAME

al\_rebase\_path - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_rebase_path(const ALLEGRO_PATH *head, ALLEGRO_PATH *tail)
  ```

## DESCRIPTION

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(3alleg5)
