1al_make_path_canonical(3)                            al_make_path_canonical(3)
2
3
4

NAME

6       al_make_path_canonical - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_make_path_canonical(ALLEGRO_PATH *path)
12

DESCRIPTION

14       Removes  any  leading '..' directory components in absolute paths.  Re‐
15       moves all '.' directory components.
16
17       Note that this does not collapse "x/../y" sections into "y".   This  is
18       by  design.   If "/foo" on your system is a symlink to "/bar/baz", then
19       "/foo/../quux" is actually "/bar/quux", not "/quux" as a naive  removal
20       of ".."  components would give you.
21
22
23
24Allegro reference manual                             al_make_path_canonical(3)
Impressum