DOKK / manpages / debian 12 / allegro5-doc / al_get_first_config_section.3alleg5.en
al_get_first_config_section(3alleg5) al_get_first_config_section(3alleg5)

al_get_first_config_section - Allegro 5 API

#include <allegro5/allegro.h>
char const *al_get_first_config_section(ALLEGRO_CONFIG const *config,

ALLEGRO_CONFIG_SECTION **iterator)

Returns the name of the first section in the given config file. Usually this will return an empty string for the global section, even it contains no values. The iterator parameter will receive an opaque iterator which is used by al_get_next_config_section(3alleg5) to iterate over the remaining sections.

The returned string and the iterator are only valid as long as no change is made to the passed ALLEGRO_CONFIG.

al_get_next_config_section(3alleg5)

Allegro reference manual