# options_add

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

```c
static struct options_entry * options_add(struct options *, const char *)
```

## Parameters

- `oo` (`struct options *`)
- `name` (`const char *`)

## Called by

- [`options_empty`](/en/tmux/latest/reference/c-function-options_empty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L248)
- [`options_set_string`](/en/tmux/latest/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L790)

## Calls

- [`options_get_only`](/en/tmux/latest/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L336)
- [`options_remove`](/en/tmux/latest/reference/c-function-options-c-options_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L338)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L340)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L342)

## Referenced declarations

- [`options_entry.name`](/en/tmux/latest/reference/c-struct-options_entry-name/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
- [`options_entry`](/en/tmux/latest/reference/c-struct-options_entry/) (struct)
- [`options_entry.owner`](/en/tmux/latest/reference/c-struct-options_entry-owner/) (attribute)
- [`options.tree`](/en/tmux/latest/reference/c-struct-options-tree/) (attribute)
