# cfg_add_cause

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L213
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cfg_add_cause/

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

## Parameters

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

## Called by

- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L850)
- [`load_cfg`](/en/tmux/3.2a/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L114)
- [`load_cfg_from_buffer`](/en/tmux/3.2a/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L184)

## Calls

- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L223)
- [`xvasprintf`](/en/tmux/3.2a/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cfg.c#L219)

## Referenced declarations

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