# cmdq_new

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L125
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmdq_new/

```c
struct cmdq_list * cmdq_new(void)
```

## Called by

- [`cmdq_get`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L117)
- [`server_client_create`](/en/tmux/latest/reference/c-function-server_client_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L306)

## Calls

- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L129)

## Referenced by

- [`cmd_parse_from_arguments`](/en/tmux/latest/reference/c-function-cmd_parse_from_arguments/) (function)

## Referenced declarations

- [`cmdq_list`](/en/tmux/latest/reference/c-struct-cmdq_list/) (struct)
- [`cmdq_list.list`](/en/tmux/latest/reference/c-struct-cmdq_list-list/) (attribute)
