# args_set

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

```c
void args_set(struct args *args, u_char flag, struct args_value *value, int flags)
```

## Parameters

- `args` (`struct args *`)
- `flag` (`u_char`)
- `value` (`struct args_value *`)
- `flags` (`int`)

## Called by

- [`args_copy`](/en/tmux/3.7c/reference/c-function-args_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L378)
- [`args_parse_flag_argument`](/en/tmux/3.7c/reference/c-function-arguments-c-args_parse_flag_argument/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L189)
- [`args_parse_flags`](/en/tmux/3.7c/reference/c-function-arguments-c-args_parse_flags/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L233)
- [`cmd_find_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-find-window-c-cmd_find_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find-window.c#L109)

## Calls

- [`args_find`](/en/tmux/3.7c/reference/c-function-arguments-c-args_find/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L657)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L659)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`ARGS_NONE`](/en/tmux/3.7c/reference/c-enum-args_type-args_none/) (constant)
- [`args_value`](/en/tmux/3.7c/reference/c-struct-args_value/) (struct)
- [`args_entry.entry`](/en/tmux/3.7c/reference/c-struct-args_entry-entry/) (attribute)
- [`args_entry.flag`](/en/tmux/3.7c/reference/c-struct-args_entry-flag/) (attribute)
- [`args_entry.flags`](/en/tmux/3.7c/reference/c-struct-args_entry-flags/) (attribute)
- [`args.tree`](/en/tmux/3.7c/reference/c-struct-args-tree/) (attribute)
- [`args_value.type`](/en/tmux/3.7c/reference/c-struct-args_value-type/) (attribute)
