# cmd_list_first

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

```c
struct cmd * cmd_list_first(struct cmd_list *cmdlist)
```

## Parameters

- `cmdlist` (`struct cmd_list *`)

## Called by

- [`args_make_commands_get_command`](/en/tmux/3.7c/reference/c-function-args_make_commands_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L868)

## Referenced by

- [`cmd_confirm_before_exec`](/en/tmux/3.7c/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function)
- [`cmdq_get_command`](/en/tmux/3.7c/reference/c-function-cmdq_get_command/) (function)

## 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.list`](/en/tmux/3.7c/reference/c-struct-cmd_list-list/) (attribute)
