# cmd_parse_and_append

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

```c
enum cmd_parse_status cmd_parse_and_append(const char *, struct cmd_parse_input *, struct client *, struct cmdq_state *, char **)
```

## Parameters

- `` (`const char *`)
- `` (`struct cmd_parse_input *`)
- `` (`struct client *`)
- `` (`struct cmdq_state *`)
- `` (`char **`)

## Called by

- [`control_read_callback`](/en/tmux/latest/reference/c-function-control-c-control_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L574)
- [`menu_key_cb`](/en/tmux/latest/reference/c-function-menu_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L503)
- [`mode_tree_run_command`](/en/tmux/latest/reference/c-function-mode_tree_run_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1477)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`cmd_parse_input`](/en/tmux/latest/reference/c-struct-cmd_parse_input/) (struct)
- [`cmd_parse_status`](/en/tmux/latest/reference/c-enum-cmd_parse_status/) (enum)
- [`cmdq_state`](/en/tmux/latest/reference/c-struct-cmdq_state/) (struct)
