---
name: "al_merge_config"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_merge_config/3alleg5"
---

# al\_merge\_config(3alleg5)

Allegro 5 API

## NAME

al\_merge\_config - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_CONFIG *al_merge_config(const ALLEGRO_CONFIG *cfg1,
      const ALLEGRO_CONFIG *cfg2)
  ```

## DESCRIPTION

Merge two configuration structures, and return the result as a new configuration. Values in configuration \`cfg2' override those in \`cfg1'. Neither of the input configuration structures are modified. Comments from \`cfg2' are not retained.

## SEE ALSO

al\_merge\_config\_into(3alleg5)
