al_fclose(3) al_fclose(3)

al_fclose - Allegro 5 API

#include <allegro5/allegro.h>
bool al_fclose(ALLEGRO_FILE *f)

Close the given file, writing any buffered output data (if any).

Returns true on success, false on failure. errno is set to indicate the error.

Allegro reference manual