---
name: "al_malloc"
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_malloc/3alleg5"
---

# al\_malloc(3alleg5)

Allegro 5 API

## NAME

al\_malloc - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  #define al_malloc(n) \
     (al_malloc_with_context((n), __LINE__, __FILE__, __func__))
  ```

## DESCRIPTION

Like malloc() in the C standard library, but the implementation may be overridden.

This is a macro.

## SEE ALSO

al\_free(3alleg5), al\_realloc(3alleg5), al\_calloc(3alleg5), al\_malloc\_with\_context(3alleg5), al\_set\_memory\_interface(3alleg5)
