# cmd_list_copy

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

```c
struct cmd_list * cmd_list_copy(const struct cmd_list *cmdlist, int argc, char **argv)
```

## Parameters

- `cmdlist` (`const struct cmd_list *`)
- `argc` (`int`)
- `argv` (`char **`)

## Called by

- [`args_copy_copy_value`](/en/tmux/3.7c/reference/c-function-arguments-c-args_copy_copy_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L358)
- [`args_make_commands`](/en/tmux/3.7c/reference/c-function-args_make_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L820)

## Calls

- [`cmd_copy`](/en/tmux/3.7c/reference/c-function-cmd_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L670)
- [`cmd_list_append`](/en/tmux/3.7c/reference/c-function-cmd_list_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L671)
- [`cmd_list_new`](/en/tmux/3.7c/reference/c-function-cmd_list_new/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L664)
- [`cmd_list_print`](/en/tmux/3.7c/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L660)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L661)

## Referenced declarations

- [`cmd_list`](/en/tmux/3.7c/reference/c-struct-cmd_list/) (struct)
- [`cmd_list_next_group`](/en/tmux/3.7c/reference/c-variable-cmd-c-cmd_list_next_group/) (attribute)
- [`cmd_list.group`](/en/tmux/3.7c/reference/c-struct-cmd_list-group/) (attribute)
- [`cmd.group`](/en/tmux/3.7c/reference/c-struct-cmd-group/) (attribute)
- [`cmd_list.list`](/en/tmux/3.7c/reference/c-struct-cmd_list-list/) (attribute)
- [`cmd.qentry`](/en/tmux/3.7c/reference/c-struct-cmd-qentry/) (attribute)
