# format_create_add_item

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

```c
static void format_create_add_item(struct format_tree *ft, struct cmdq_item *item)
```

## Parameters

- `ft` (`struct format_tree *`)
- `item` (`struct cmdq_item *`)

## Called by

- [`format_create`](/en/tmux/latest/reference/c-function-format_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3836)

## Calls

- [`cmdq_get_event`](/en/tmux/latest/reference/c-function-cmdq_get_event/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3810)
- [`cmdq_merge_formats`](/en/tmux/latest/reference/c-function-cmdq_merge_formats/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3813)

## Referenced declarations

- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`format_tree.m`](/en/tmux/latest/reference/c-struct-format_tree-m/) (attribute)
