---
name: "al_realloc_with_context"
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_realloc_with_context/3alleg5"
---

# al\_realloc\_with\_context(3alleg5)

Allegro 5 API

## NAME

al\_realloc\_with\_context - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void *al_realloc_with_context(void *ptr, size_t n,
     int line, const char *file, const char *func)
  ```

## DESCRIPTION

This calls realloc() from the Allegro library (this matters on Windows), unless overridden with al\_set\_memory\_interface(3alleg5),

Generally you should use the al\_realloc(3alleg5) macro.
