---
name: "al_load_config_file"
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_load_config_file"
---

# al\_load\_config\_file(3)

Allegro 5 API

## NAME

al\_load\_config\_file - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_CONFIG *al_load_config_file(const char *filename)
  ```

## DESCRIPTION

Read a configuration file from disk. Returns NULL on error. The configuration structure should be destroyed with [al\_destroy\_config(3)](/al_destroy_config/3.md).

## SEE ALSO

[al\_load\_config\_file\_f(3)](/al_load_config_file_f/3.md), [al\_save\_config\_file(3)](/al_save_config_file/3.md)
