AL_GET_FIRST_CONFIG_SECTION(3)
π AL_GET_FIRST_CONFIG_SECTION(3) π
okay bestie, welcome to the Library Functions Manual β this is the Allegro 5 API page for al_get_first_config_section, and it's literally the βstart at the top of the config sectionsβ girlie. π
πΈ NAME πΈ
al_get_first_config_section β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
char const *al_get_first_config_section(ALLEGRO_CONFIG const *config,
ALLEGRO_CONFIG_SECTION **iterator)
π¦ DESCRIPTION π¦
So this one returns the name of the first section in the given config file. Usually it'll hand you back an empty string for the global section, even if it contains no values. No drama, that's just the vibe. π
The iterator parameter will receive an opaque iterator, and that little icon is used by al_get_next_config_section(3) to iterate over the remaining sections. iykyk. β¨
β οΈ okay important bestie: the returned string and the iterator are only valid as long as no change is made to the passed ALLEGRO_CONFIG. Do not be out here mutating it and then expecting those pointers to slay. π
π SEE ALSO π
mwah π β this one is signed off by the Allegro reference manual, which is the source/version line, and there's no date listed in the footer, so that's the whole cute sign-off, fr fr. π«Άπ
π¦ 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