# options_to_string

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

```c
char * options_to_string(struct options_entry *o, int idx, int numeric)
```

## Parameters

- `o` (`struct options_entry *`)
- `idx` (`int`)
- `numeric` (`int`)

## Called by

- [`cmd_show_options_print`](/en/tmux/3.7c/reference/c-function-cmd-show-options-c-cmd_show_options_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L177)
- [`format_add_window_neighbor`](/en/tmux/3.7c/reference/c-function-format-c-format_add_window_neighbor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4730)
- [`format_find`](/en/tmux/3.7c/reference/c-function-format-c-format_find/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4097)
- [`window_customize_build_array`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_array/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L249)
- [`window_customize_build_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L310)
- [`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#L727)
- [`window_customize_set_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1135)

## Calls

- [`options_value_to_string`](/en/tmux/3.7c/reference/c-function-options-c-options_value_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L600)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L605)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L612)

## Referenced declarations

- [`options_value.array`](/en/tmux/3.7c/reference/c-union-options_value-array/) (attribute)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`OPTIONS_IS_ARRAY`](/en/tmux/3.7c/reference/c-define-options-c-options_is_array/) (constant)
- [`options_array_item.value`](/en/tmux/3.7c/reference/c-struct-options_array_item-value/) (attribute)
- [`options_entry.value`](/en/tmux/3.7c/reference/c-struct-options_entry-value/) (attribute)
