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

# al\_realloc\_with\_context(3)

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(3)](/al_set_memory_interface/3.md),

Generally you should use the [al\_realloc(3)](/al_realloc/3.md) macro.
