Allegro 5 api
#include <allegro5/allegro.h> bool al_close_directory(ALLEGRO_FS_ENTRY *e)
Closes a previously opened directory entry object.
Returns true on success, false on failure and fills in Allegro\[aq]s errno to indicate the error.
al_open_directory(3alleg5), al_read_directory(3alleg5)