# options_array_new

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

```c
static struct options_array_item * options_array_new(struct options_entry *o, u_int idx)
```

## Parameters

- `o` (`struct options_entry *`)
- `idx` (`u_int`)

## Called by

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

## Calls

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

## Referenced declarations

- [`options_value.array`](/en/tmux/3.2a/reference/c-union-options_value-array/) (attribute)
- [`options_array_item.index`](/en/tmux/3.2a/reference/c-struct-options_array_item-index/) (attribute)
- [`options_array_item`](/en/tmux/3.2a/reference/c-struct-options_array_item/) (struct)
- [`options_entry`](/en/tmux/3.2a/reference/c-struct-options_entry/) (struct)
- [`options_entry.value`](/en/tmux/3.2a/reference/c-struct-options_entry-value/) (attribute)
