al_set_config_value(3)

al_set_config_value3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
void al_set_config_value(ALLEGRO_CONFIG *config,
   const char *section, const char *key, const char *value)

Overview

Set a value in a section of a configuration. If the section doesn’t yet exist, it will be created. If a value already existed for the given key, it will be overwritten. The section can be NULL or “” for the global section.

For consistency with the on-disk format of config files, any leading and trailing whitespace will be stripped from the value. If you have significant whitespace you wish to preserve, you should add your own quote characters and remove them when reading the values back in.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.