# options_default_to_string

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

```c
char * options_default_to_string(const struct options_table_entry *oe)
```

## Parameters

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

## Called by

- [`window_customize_draw_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_draw_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L729)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L326)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L311)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L308)

## Other function references

- [`colour_tostring`](/en/tmux/3.7c/reference/c-function-colour_tostring/) (function)
- [`key_string_lookup_key`](/en/tmux/3.7c/reference/c-function-key_string_lookup_key/) (function)

## Referenced declarations

- [`options_table_entry.choices`](/en/tmux/3.7c/reference/c-struct-options_table_entry-choices/) (attribute)
- [`options_table_entry.default_num`](/en/tmux/3.7c/reference/c-struct-options_table_entry-default_num/) (attribute)
- [`options_table_entry.default_str`](/en/tmux/3.7c/reference/c-struct-options_table_entry-default_str/) (attribute)
- [`OPTIONS_TABLE_CHOICE`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_choice/) (constant)
- [`OPTIONS_TABLE_COLOUR`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_colour/) (constant)
- [`OPTIONS_TABLE_COMMAND`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_command/) (constant)
- [`options_table_entry`](/en/tmux/3.7c/reference/c-struct-options_table_entry/) (struct)
- [`OPTIONS_TABLE_FLAG`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_flag/) (constant)
- [`OPTIONS_TABLE_KEY`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_key/) (constant)
- [`OPTIONS_TABLE_NUMBER`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_number/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`options_table_entry.type`](/en/tmux/3.7c/reference/c-struct-options_table_entry-type/) (attribute)
