# args_make_commands_get_command

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

```c
char * args_make_commands_get_command(struct args_command_state *state)
```

## Parameters

- `state` (`struct args_command_state *`)

## Called by

- [`cmd_command_prompt_exec`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L106)

## Calls

- [`cmd_list_first`](/en/tmux/latest/reference/c-function-cmd_list_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L868)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L874)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L870)

## Other function references

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

## Referenced declarations

- [`args_command_state`](/en/tmux/latest/reference/c-struct-args_command_state/) (struct)
- [`args_command_state.cmd`](/en/tmux/latest/reference/c-struct-args_command_state-cmd/) (attribute)
- [`args_command_state.cmdlist`](/en/tmux/latest/reference/c-struct-args_command_state-cmdlist/) (attribute)
