Allegro 5 api
#include <allegro5/allegro.h> bool al_fflush(ALLEGRO_FILE *f)
Flush any pending writes to the given file.
Returns true on success, false otherwise. errno is set to indicate the error.
al_get_errno(3alleg5)