# cmd_append_argv

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

```c
void cmd_append_argv(int *argc, char ***argv, const char *arg)
```

## Parameters

- `argc` (`int *`)
- `argv` (`char ***`)
- `arg` (`const char *`)

## Called by

- [`args_to_vector`](/en/tmux/latest/reference/c-function-args_to_vector/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L465)
- [`cmd_command_prompt_callback`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L197)
- [`cmd_display_popup_exec`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L458)

## Calls

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

## Other function references

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