---
name: "list_config_sections"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/list_config_sections/3alleg4"
---

# list\_config\_sections(3alleg4)

Lists the names of all sections available in the current configuration. Allegro game programming library.

## NAME

list\_config\_sections - Lists the names of all sections available in the current configuration. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int list\_config\_sections(const char \*\*\*names);**

## DESCRIPTION

The names parameter is a pointer to an array of strings. If it points to a NULL pointer, the list will be allocated, else it will be re-allocated. After the function returns, it will contain the names of all sections in the current configuration. Use free\_config\_entries to free the allocated memory again. See list\_config\_entries for more information and an example how to use it.

## RETURN VALUE

Returns the number of valid strings in the names array.

## SEE ALSO

**list\_config\_entries**(3alleg4), **set\_config\_file**(3alleg4), **get\_config\_string**(3alleg4), **free\_config\_entries**(3alleg4)
