Allegro 5 api
#include <allegro5/allegro.h> const char *al_get_path_tail(const ALLEGRO_PATH *path)
Returns the last directory component, or NULL if there are no directory components.