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

# set\_config\_int(3alleg)

Writes an integer in the configuration file. Allegro game programming library.

## NAME

set\_config\_int - Writes an integer in the configuration file. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

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

## SEE ALSO

[**set\_config\_file**(3alleg)](/set_config_file/3alleg.md), [**get\_config\_int**(3alleg)](/get_config_int/3alleg.md), [**set\_config\_string**(3alleg)](/set_config_string/3alleg.md), [**set\_config\_float**(3alleg)](/set_config_float/3alleg.md), [**set\_config\_hex**(3alleg)](/set_config_hex/3alleg.md), [**set\_config\_id**(3alleg)](/set_config_id/3alleg.md)
