# args_copy

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

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

## Parameters

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

## Called by

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

## Calls

- [`args_copy_copy_value`](/en/tmux/latest/reference/c-function-arguments-c-args_copy_copy_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L383)
- [`args_create`](/en/tmux/latest/reference/c-function-args_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L374)
- [`args_set`](/en/tmux/latest/reference/c-function-args_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L378)
- [`cmd_log_argv`](/en/tmux/latest/reference/c-function-cmd_log_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L372)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L382)

## Referenced declarations

- [`args`](/en/tmux/latest/reference/c-struct-args/) (struct)
- [`args.count`](/en/tmux/latest/reference/c-struct-args-count/) (attribute)
- [`args_entry.entry`](/en/tmux/latest/reference/c-struct-args_entry-entry/) (attribute)
- [`args_value.entry`](/en/tmux/latest/reference/c-struct-args_value-entry/) (attribute)
- [`args.tree`](/en/tmux/latest/reference/c-struct-args-tree/) (attribute)
- [`args.values`](/en/tmux/latest/reference/c-struct-args-values/) (attribute)
