al_rebase_path(3)

al_rebase_path3

Allegro 5 api

Usage

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

Overview

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”.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.