---
name: "get_config_id"
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/get_config_id/3alleg4"
---

# get\_config\_id(3alleg4)

Retrieves a driver ID from a configuration file. Allegro game programming library.

## NAME

get\_config\_id - Retrieves a driver ID from a configuration file. Allegro game programming library.

## SYNOPSIS

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

**int get\_config\_id(const char \*section, const char \*name, int def);**

## DESCRIPTION

Reads a 4-letter driver ID variable from the current config file. See the  comments about get\_config\_string().

## SEE ALSO

**set\_config\_file**(3alleg4), **set\_config\_id**(3alleg4), **get\_config\_string**(3alleg4), **get\_config\_argv**(3alleg4), **get\_config\_float**(3alleg4), **get\_config\_hex**(3alleg4), **get\_config\_int**(3alleg4)
