# options_default

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

```c
struct options_entry * options_default(struct options *oo, const struct options_table_entry *oe)
```

## Parameters

- `oo` (`struct options *`)
- `oe` (`const struct options_table_entry *`)

## Called by

- [`main`](/en/tmux/3.2a/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.c#L460)
- [`options_remove_or_default`](/en/tmux/3.2a/reference/c-function-options_remove_or_default/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1140)
- [`options_set_number`](/en/tmux/3.2a/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L761)
- [`options_set_string`](/en/tmux/3.2a/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L738)

## Calls

- [`options_array_assign`](/en/tmux/3.2a/reference/c-function-options_array_assign/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L269)
- [`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#L273)
- [`options_empty`](/en/tmux/3.2a/reference/c-function-options_empty/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L264)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L279)

## Referenced declarations

- [`options_table_entry.default_arr`](/en/tmux/3.2a/reference/c-struct-options_table_entry-default_arr/) (attribute)
- [`options_table_entry.default_num`](/en/tmux/3.2a/reference/c-struct-options_table_entry-default_num/) (attribute)
- [`options_table_entry.default_str`](/en/tmux/3.2a/reference/c-struct-options_table_entry-default_str/) (attribute)
- [`options_table_entry.flags`](/en/tmux/3.2a/reference/c-struct-options_table_entry-flags/) (attribute)
- [`options_value.number`](/en/tmux/3.2a/reference/c-union-options_value-number/) (attribute)
- [`options`](/en/tmux/3.2a/reference/c-struct-options/) (struct)
- [`options_entry`](/en/tmux/3.2a/reference/c-struct-options_entry/) (struct)
- [`options_table_entry`](/en/tmux/3.2a/reference/c-struct-options_table_entry/) (struct)
- [`OPTIONS_TABLE_IS_ARRAY`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_is_array/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`options_value.string`](/en/tmux/3.2a/reference/c-union-options_value-string/) (attribute)
- [`options_table_entry.type`](/en/tmux/3.2a/reference/c-struct-options_table_entry-type/) (attribute)
- [`options_entry.value`](/en/tmux/3.2a/reference/c-struct-options_entry-value/) (attribute)
