---
name: "al_get_first_config_section"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_first_config_section"
---

# al\_get\_first\_config\_section(3)

Allegro 5 API

## 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

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(3)](/al_get_next_config_section/3.md) 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.

## SEE ALSO

[al\_get\_next\_config\_section(3)](/al_get_next_config_section/3.md)
