# cmd_unpack_argv

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

```c
int cmd_unpack_argv(char *buf, size_t len, int argc, char ***argv)
```

## Parameters

- `buf` (`char *`)
- `len` (`size_t`)
- `argc` (`int`)
- `argv` (`char ***`)

## Called by

- [`server_client_dispatch_command`](/en/tmux/latest/reference/c-function-server-client-c-server_client_dispatch_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2385)

## Calls

- [`cmd_free_argv`](/en/tmux/latest/reference/c-function-cmd_free_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L315)
- [`cmd_log_argv`](/en/tmux/latest/reference/c-function-cmd_log_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L325)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L310)

## Other function references

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