---
name: "get_config_hex"
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/get_config_hex"
---

# get\_config\_hex(3alleg)

Retrieves a hexadecimal value from the configuration file. Allegro game programming library.

## NAME

get\_config\_hex - Retrieves a hexadecimal value from the configuration file. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Reads an integer variable from the current config file, in hexadecimal  format. See the comments about get\_config\_string().

## SEE ALSO

[**set\_config\_file**(3alleg)](/set_config_file/3alleg.md), [**set\_config\_hex**(3alleg)](/set_config_hex/3alleg.md), [**get\_config\_string**(3alleg)](/get_config_string/3alleg.md), [**get\_config\_argv**(3alleg)](/get_config_argv/3alleg.md), [**get\_config\_float**(3alleg)](/get_config_float/3alleg.md), [**get\_config\_int**(3alleg)](/get_config_int/3alleg.md), [**get\_config\_id**(3alleg)](/get_config_id/3alleg.md)
