# cmd_list_next

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L729
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-cmdq_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L531)

## Referenced declarations

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