# cfg_add_cause

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L207
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cfg_add_cause/

```c
void cfg_add_cause(const char *fmt,...)
```

## Parameters

- `fmt` (`const char *`)
- `` (`...`)

## Called by

- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L880)
- [`load_cfg`](/en/tmux/latest/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L112)
- [`load_cfg_from_buffer`](/en/tmux/latest/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L178)

## Calls

- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L217)
- [`xvasprintf`](/en/tmux/latest/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L213)

## Referenced declarations

- [`cfg_causes`](/en/tmux/latest/reference/c-variable-cfg-c-cfg_causes/) (attribute)
- [`cfg_ncauses`](/en/tmux/latest/reference/c-variable-cfg-c-cfg_ncauses/) (attribute)
