---
name: "al_get_errno"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_errno"
---

# al\_get\_errno(3)

Allegro 5 API

## NAME

al\_get\_errno - Allegro 5 API

## SYNOPSIS

-

  ```
  int al_get_errno(void)
  ```

## 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.
