---
name: "cfg_t"
section: "3"
platform: "linux"
package: "libconfuse-doc"
version: "3.3-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cfg_t"
---

# cfg\_t(3)

Data structure holding information about a 'section'.

## NAME

cfg\_t - Data structure holding information about a 'section'.

## SYNOPSIS

`#include <confuse.h>`

### Data Fields

cfg\_flag\_t **flags**\
 Any flags passed to cfg\_init()  char \* **name**\
 The name of this section, the root section returned from cfg\_init() is always named 'root'.  char \* **comment**\
 Optional annotation/comment.  **cfg\_opt\_t** \* **opts**\
 Array of options.  char \* **title**\
 Optional title for this section, only set if CFGF\_TITLE flag is set.  char \* **filename**\
 Name of the file being parsed.  int **line**\
 Line number in the config file.  **cfg\_errfunc\_t** **errfunc**\
 This function (if set with cfg\_set\_error\_function) is called for any error message.  cfg\_searchpath\_t \* **path**\
 Linked list of directories to search.  **cfg\_print\_filter\_func\_t** **pff**\
 Printing filter function.

## Detailed Description

Data structure holding information about a 'section'.

Sections can be nested. A section has a list of options (strings, numbers, booleans or other sections) grouped together.

**Examples** **ftpconf.c**, **reread.c**, and **simple.c**.

## Field Documentation

### cfg\_errfunc\_t cfg\_t::errfunc

This function (if set with cfg\_set\_error\_function) is called for any error message.

Referenced by **cfg\_addtsec()**, **cfg\_error()**, **cfg\_init()**, **cfg\_set\_error\_function()**, and **cfg\_setopt()**.

## Author

Generated automatically by Doxygen for confuse from the source code.
