---
name: "set_config_data"
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_data"
---

# set\_config\_data(3alleg)

Sets a block of configuration data. Allegro game programming library.

## NAME

set\_config\_data - Sets a block of configuration data. Allegro game programming library.

## SYNOPSIS

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

**void set\_config\_data(const char \*data, int length);**

## DESCRIPTION

Specifies a block of data to be used by all subsequent config functions,  which you have already loaded from disk (eg. as part of some more  complicated format of your own, or in a grabber datafile). This routine  makes a copy of the information, so you can safely free the data after  calling it.

## SEE ALSO

[**set\_config\_file**(3alleg)](/set_config_file/3alleg.md), [**override\_config\_data**(3alleg)](/override_config_data/3alleg.md), [**push\_config\_state**(3alleg)](/push_config_state/3alleg.md), [**set\_config\_string**(3alleg)](/set_config_string/3alleg.md), [**get\_config\_string**(3alleg)](/get_config_string/3alleg.md)
