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

# ALLEGRO\_MEMORY\_INTERFACE(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_MEMORY\_INTERFACE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  typedef struct ALLEGRO_MEMORY_INTERFACE ALLEGRO_MEMORY_INTERFACE;
  ```

## DESCRIPTION

This structure has the following fields.

-

  ```
  void *(*mi_malloc)(size_t n, int line, const char *file, const char *func);
  void (*mi_free)(void *ptr, int line, const char *file, const char *func);
  void *(*mi_realloc)(void *ptr, size_t n, int line, const char *file,
                      const char *func);
  void *(*mi_calloc)(size_t count, size_t n, int line, const char *file,
                     const char *func);
  ```

## SEE ALSO

al\_set\_memory\_interface(3alleg5)
