al_remove_config_key(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_remove_config_key β€” Allegro 5 API ✨

okay bestie, so this one lives in the 3alleg5 manual (yes, the Allegro 5 crew) and it's literally the "bye felicia" button for config keys πŸŽ€


🌸 NAME 🌸

al_remove_config_key β€” Allegro 5 API, no cap πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_remove_config_key(ALLEGRO_CONFIG *config, char const *section,
   char const *key)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what it does is it removes a key and its associated value from a section of a configuration. like, the whole entry, gone, not just the key sitting there alone looking abandoned 😭

it returns true if the entry was removed, or false if the entry did not exist. so if you get false back, that key was never there to begin with β€” the config was already serving nothing, and it's giving ghost town πŸ’€


πŸ‘‘ SINCE πŸ‘‘

5.1.5 β€” vintage but iconic, fr fr ⭐


so yeah, that's the whole thing 🫢 go forth and declutter your config files, main character energy only 🌈

that's the whole page, bestie β€” the al_remove_config_key manual page from the Allegro reference manual πŸ’œ

kisses, and remember: if the key doesn't exist, you get false, and that's just the universe telling you it was already clean βœ¨πŸ’–

πŸ“¦ where this page comes from