al_fflush(3) al_fflush(3)

al_fflush - 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(3)

Allegro reference manual