# args_to_vector

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

```c
void args_to_vector(struct args *args, int *argc, char ***argv)
```

## Parameters

- `args` (`struct args *`)
- `argc` (`int *`)
- `argv` (`char ***`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.7c/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#L460)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L298)
- [`cmd_new_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-window.c#L124)
- [`cmd_respawn_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-respawn-pane-c-cmd_respawn_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-respawn-pane.c#L65)
- [`cmd_respawn_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-respawn-window-c-cmd_respawn_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-respawn-window.c#L64)
- [`cmd_split_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-split-window.c#L134)

## Calls

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

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`ARGS_COMMANDS`](/en/tmux/3.7c/reference/c-enum-args_type-args_commands/) (constant)
- [`ARGS_NONE`](/en/tmux/3.7c/reference/c-enum-args_type-args_none/) (constant)
- [`ARGS_STRING`](/en/tmux/3.7c/reference/c-enum-args_type-args_string/) (constant)
- [`args.count`](/en/tmux/3.7c/reference/c-struct-args-count/) (attribute)
- [`args_value.type`](/en/tmux/3.7c/reference/c-struct-args_value-type/) (attribute)
- [`args.values`](/en/tmux/3.7c/reference/c-struct-args-values/) (attribute)
