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

# set\_config\_hex(3alleg4)

Writes a hexadecimal integer in the configuration file. Allegro game programming library.

## NAME

set\_config\_hex - Writes a hexadecimal integer in the configuration file. Allegro game programming library.

## SYNOPSIS

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

**void set\_config\_hex(const char \*section, const char \*name, int val);**

## DESCRIPTION

Writes an integer variable to the current config file, in hexadecimal  format. See the comments about set\_config\_string().

## SEE ALSO

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