al_set_errno(3) al_set_errno(3)

al_set_errno - Allegro 5 API

void al_set_errno(int errnum)
SETTER(allegro_errno, errnum)

Set the error number for the calling thread.

Allegro reference manual