al_ferrmsg(3) al_ferrmsg(3)

al_ferrmsg - Allegro 5 API

#include <allegro5/allegro.h>
const char *al_ferrmsg(ALLEGRO_FILE *f)

Return a message string with details about the last error that occurred on the given file handle. The returned string is empty if there was no error, or if the file interface does not provide more information.

al_fclearerr(3), al_ferror(3)

Allegro reference manual