# options_default

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L258
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L511)
- [`options_remove_or_default`](/en/tmux/latest/reference/c-function-options_remove_or_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1284)
- [`options_set_command`](/en/tmux/latest/reference/c-function-options_set_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L837)
- [`options_set_number`](/en/tmux/latest/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L815)
- [`options_set_string`](/en/tmux/latest/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L792)

## Calls

- [`cmd_parse_from_string`](/en/tmux/latest/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L283)
- [`options_array_assign`](/en/tmux/latest/reference/c-function-options_array_assign/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L270)
- [`options_array_set`](/en/tmux/latest/reference/c-function-options_array_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L274)
- [`options_empty`](/en/tmux/latest/reference/c-function-options_empty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L265)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L280)

## Referenced declarations

- [`CMD_PARSE_ERROR`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/latest/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`cmd_parse_result.cmdlist`](/en/tmux/latest/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`options_value.cmdlist`](/en/tmux/latest/reference/c-union-options_value-cmdlist/) (attribute)
- [`options_table_entry.default_arr`](/en/tmux/latest/reference/c-struct-options_table_entry-default_arr/) (attribute)
- [`options_table_entry.default_num`](/en/tmux/latest/reference/c-struct-options_table_entry-default_num/) (attribute)
- [`options_table_entry.default_str`](/en/tmux/latest/reference/c-struct-options_table_entry-default_str/) (attribute)
- [`cmd_parse_result.error`](/en/tmux/latest/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`options_table_entry.flags`](/en/tmux/latest/reference/c-struct-options_table_entry-flags/) (attribute)
- [`options_value.number`](/en/tmux/latest/reference/c-union-options_value-number/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
- [`options_entry`](/en/tmux/latest/reference/c-struct-options_entry/) (struct)
- [`OPTIONS_TABLE_COMMAND`](/en/tmux/latest/reference/c-enum-options_table_type-options_table_command/) (constant)
- [`options_table_entry`](/en/tmux/latest/reference/c-struct-options_table_entry/) (struct)
- [`OPTIONS_TABLE_IS_ARRAY`](/en/tmux/latest/reference/c-define-tmux-h-options_table_is_array/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/latest/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`cmd_parse_result.status`](/en/tmux/latest/reference/c-struct-cmd_parse_result-status/) (attribute)
- [`options_value.string`](/en/tmux/latest/reference/c-union-options_value-string/) (attribute)
- [`options_table_entry.type`](/en/tmux/latest/reference/c-struct-options_table_entry-type/) (attribute)
- [`options_entry.value`](/en/tmux/latest/reference/c-struct-options_entry-value/) (attribute)
