# cmd_list_append

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L608
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd_list_append/

```c
void cmd_list_append(struct cmd_list *cmdlist, struct cmd *cmd)
```

## Parameters

- `cmdlist` (`struct cmd_list *`)
- `cmd` (`struct cmd *`)

## Called by

- [`cmd_list_copy`](/en/tmux/3.7c/reference/c-function-cmd_list_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L671)

## Referenced declarations

- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`cmd_list`](/en/tmux/3.7c/reference/c-struct-cmd_list/) (struct)
- [`cmd_list.group`](/en/tmux/3.7c/reference/c-struct-cmd_list-group/) (attribute)
- [`cmd.group`](/en/tmux/3.7c/reference/c-struct-cmd-group/) (attribute)
- [`cmd_list.list`](/en/tmux/3.7c/reference/c-struct-cmd_list-list/) (attribute)
