---
name: "al_add_config_comment"
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_add_config_comment"
---

# al\_add\_config\_comment(3)

Allegro 5 API

## NAME

al\_add\_config\_comment - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_add_config_comment(ALLEGRO_CONFIG *config,
     const char *section, const char *comment)
  ```

## DESCRIPTION

Add a comment in a section of a configuration. If the section doesn’t yet exist, it will be created. The section can be NULL or “” for the global section.

The comment may or may not begin with a hash character. Any newlines in the comment string will be replaced by space characters.

## SEE ALSO

[al\_add\_config\_section(3)](/al_add_config_section/3.md)
