ALLEGRO_MEMORY_INTERFACE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

ALLEGRO_MEMORY_INTERFACE(3) πŸ’…

🌸 NAME 🌸

ALLEGRO_MEMORY_INTERFACE β€” the Allegro 5 API, bestie. This page is chilling in the Library Functions Manual. πŸ’–


✨ SYNOPSIS ✨

Okay so here’s the include and the typedef, exactly as they come β€” no edits, no cap:

#include <allegro5/allegro.h>

typedef struct ALLEGRO_MEMORY_INTERFACE ALLEGRO_MEMORY_INTERFACE;

πŸ¦‹ DESCRIPTION πŸ¦‹

This structure has the following fields, and we are literally not skipping a single one:

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);
  • mi_malloc β€” field one of the struct, sitting pretty with that exact signature. ✨
  • mi_free β€” field two, same energy, exact signature preserved. πŸ’…
  • mi_realloc β€” field three, multi-line signature and all, untouched. πŸ¦‹
  • mi_calloc β€” field four, exact signature, no edits. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯


That’s the whole page, bestie β€” source/version: Allegro reference manual; page: ALLEGRO_MEMORY_INTERFACE(3); date: not printed on this page. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms