free_config_entries(3alleg4)
π free_config_entries β the Allegro manual, but make it cute π
ok so bestie, this one's from the Allegro manual, and it's about free_config_entries, a lil function from the Allegro game programming library. yes queen, it does exactly what it says on the tin π
β¨ NAME β¨
free_config_entries β Frees memory allocated for config entry lists. Part of the Allegro game programming library. literally her whole job π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int free_config_entries(const char ***names);
π¦ DESCRIPTION π¦
okay so here's the tea π. Once you are done with the string arrays that got filled in by list_config_entries and list_config_sections, you can free them again with this function. That's it. That's the gig. no cap β¨
The passed array pointer will be set to NULL, which is honestly so thoughtful of her β and that means you can directly pass the same pointer again to list_config_entries or list_config_sections later. iconic behaviour fr fr π
but wait, there's more (there isn't, but hear me out) β you also could pass them again without freeing first, since the memory is re-allocated when the pointer is not NULL. so like, she's flexible. she's not gonna be mad at you either way. main character energy π
π‘ See list_config_entries for an example of how to use it. she's not gonna write the example twice, bestie, go look π
π SEE ALSO π
Allegro Β· version 4.4.3 Β· free_config_entries(3alleg4)
and that's the whole page bestie π«Ά go forth, free your config entries, and slay β¨π π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms