1al_make_path_canonical(3) Library Functions Manual al_make_path_canonical(3)
2
3
4
6 al_make_path_canonical
7
9 #include <allegro5/allegro.h>
10
11 bool al_make_path_canonical(ALLEGRO_PATH *path)
12
14 Removes any leading '..' directory components in absolute paths.
15 Removes 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)