al_set_errno(3) Library Functions Manual al_set_errno(3)

al_set_errno - Allegro 5 API

void al_set_errno(int errnum)

Set the error number for the calling thread.

Allegro reference manual