# options_array_clear

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L397
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-options_array_clear/

```c
void options_array_clear(struct options_entry *o)
```

## Parameters

- `o` (`struct options_entry *`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L196)
- [`options_remove`](/en/tmux/3.2a/reference/c-function-options-c-options_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L342)

## Calls

- [`options_array_free`](/en/tmux/3.2a/reference/c-function-options-c-options_array_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L405)

## Referenced declarations

- [`options_value.array`](/en/tmux/3.2a/reference/c-union-options_value-array/) (attribute)
- [`options_entry`](/en/tmux/3.2a/reference/c-struct-options_entry/) (struct)
- [`OPTIONS_IS_ARRAY`](/en/tmux/3.2a/reference/c-define-options-c-options_is_array/) (constant)
- [`options_entry.value`](/en/tmux/3.2a/reference/c-struct-options_entry-value/) (attribute)
