---
name: "al_merge_config"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_merge_config"
---

# al\_merge\_config(3)

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(3)](/al_merge_config_into/3.md)
