---
name: "al_get_first_config_entry"
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_entry"
---

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

Allegro 5 API

## NAME

al\_get\_first\_config\_entry - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  char const *al_get_first_config_entry(ALLEGRO_CONFIG const *config,
     char const *section, ALLEGRO_CONFIG_ENTRY **iterator)
  ```

## DESCRIPTION

Returns the name of the first key in the given section in the given config or NULL if the section is empty. The `iterator` works like the one for [al\_get\_first\_config\_section(3)](/al_get_first_config_section/3.md).

The returned string and the iterator are only valid as long as no change is made to the passed [ALLEGRO\_CONFIG(3)](/ALLEGRO_CONFIG/3.md).

## SEE ALSO

[al\_get\_next\_config\_entry(3)](/al_get_next_config_entry/3.md)
