Allegro 5 api
#include <allegro5/allegro.h> ALLEGRO_PATH *al_create_path_for_directory(const char *str)
This is the same as al_create_path(3alleg5), but interprets the passed string as a directory path. The filename component of the returned path will always be empty.
al_create_path(3alleg5), al_destroy_path(3alleg5)