---
name: "al_get_errno"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_errno/3alleg5"
---

# al\_get\_errno(3alleg5)

Allegro 5 API

## NAME

al\_get\_errno - Allegro 5 API

## SYNOPSIS

-

  ```
  int al_get_errno(void)
  GETTER(allegro_errno, 0)
  ```

## DESCRIPTION

Some Allegro functions will set an error number as well as returning an error code. Call this function to retrieve the last error number set for the calling thread.
