---
name: "list_config_sections"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/list_config_sections"
---

# list\_config\_sections(3alleg)

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**(3alleg)](/list_config_entries/3alleg.md), [**set\_config\_file**(3alleg)](/set_config_file/3alleg.md), [**get\_config\_string**(3alleg)](/get_config_string/3alleg.md), [**free\_config\_entries**(3alleg)](/free_config_entries/3alleg.md)
