# cmd_list_next

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

```c
struct cmd * cmd_list_next(struct cmd *cmd)
```

## Parameters

- `cmd` (`struct cmd *`)

## Called by

- [`cmdq_get_command`](/en/tmux/3.2a/reference/c-function-cmdq_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L509)

## Referenced by

- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`cmd`](/en/tmux/3.2a/reference/c-struct-cmd/) (struct)
- [`cmd.qentry`](/en/tmux/3.2a/reference/c-struct-cmd-qentry/) (attribute)
