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

# override\_config\_data(3alleg4)

Specifies a block of data containing config overrides. Allegro game programming library.

## NAME

override\_config\_data - Specifies a block of data containing config overrides. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Version of override\_config\_file() which uses a block of data that has  already been read into memory. The length of the block has to be specified in bytes. Example:

```
   /* Force German as system language, Spanish keyboard map. */
   const char *override_data = "[system]\n"
      "language=DE\n"
      "keyboard=ES";
   override_config_data(override_data, ustrsize(override_data));
```

Note that this function and override\_config\_file() are mutually exclusive, i.e. calling one will cancel the effects of the other.

## SEE ALSO

**override\_config\_file**(3alleg4), **set\_config\_data**(3alleg4)
