# options_array_assign

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

```c
int options_array_assign(struct options_entry *o, const char *s, char **cause)
```

## Parameters

- `o` (`struct options_entry *`)
- `s` (`const char *`)
- `cause` (`char **`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-option.c#L213)
- [`options_default`](/en/tmux/3.7c/reference/c-function-options_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L270)

## Calls

- [`options_array_set`](/en/tmux/3.7c/reference/c-function-options_array_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L527)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L532)

## Referenced declarations

- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`options_table_entry.separator`](/en/tmux/3.7c/reference/c-struct-options_table_entry-separator/) (attribute)
- [`options_entry.tableentry`](/en/tmux/3.7c/reference/c-struct-options_entry-tableentry/) (attribute)
