free_config_entries(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

okay so bestie, welcome to the Allegro manual πŸ’– the function we're hyping up is free_config_entries, and she frees memory allocated for config entry lists. it's part of the Allegro game programming library. periodt. πŸŽ€

πŸ“¦ SYNOPSIS πŸ“¦

#include <allegro.h>

int free_config_entries(const char ***names);

🧠 DESCRIPTION 🧠

so once you're done with the string arrays that list_config_entries and list_config_sections filled in, you can free them again with this function. it's giving cleanup era, fr fr. ✨

the passed array pointer will be set to NULL, and then you can directly pass the same pointer again to list_config_entries or list_config_sections later. but also β€” plot twist β€” you could pass them again without freeing first, because the memory is re-allocated when the pointer is not NULL. lowkey convenient, highkey iconic. πŸ’…

see list_config_entries for an example of how to use it. iykyk. 🫢

πŸ‘€ SEE ALSO πŸ‘€


that's the whole page, bestie. from the Allegro manual, version 4.4.3 β€” no date in this footer, but the energy is timeless. free_config_entries(3), out. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from