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

# push\_config\_state(3alleg)

Pushes the current configuration state. Allegro game programming library.

## NAME

push\_config\_state - Pushes the current configuration state. Allegro game programming library.

## SYNOPSIS

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

**void push\_config\_state();**

## DESCRIPTION

Pushes the current configuration state (filename, variable values, etc).  onto an internal stack, allowing you to select some other config source  and later restore the current settings by calling pop\_config\_state().  This function is mostly intended for internal use by other library  functions, for example when you specify a config filename to the  save\_joystick\_data() function, it pushes the config state before  switching to the file you specified.

## SEE ALSO

[**pop\_config\_state**(3alleg)](/pop_config_state/3alleg.md), [**set\_config\_file**(3alleg)](/set_config_file/3alleg.md), [**save\_joystick\_data**(3alleg)](/save_joystick_data/3alleg.md), [**exconfig**(3alleg)](/exconfig/3alleg.md)
