# options_value_to_string

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

```c
static char * options_value_to_string(struct options_entry *o, union options_value *ov, int numeric)
```

## Parameters

- `o` (`struct options_entry *`)
- `ov` (`union options_value *`)
- `numeric` (`int`)

## Called by

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

## Calls

- [`cmd_list_print`](/en/tmux/3.7c/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L139)
- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L161)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L143)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L146)

## 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_value.cmdlist`](/en/tmux/3.7c/reference/c-union-options_value-cmdlist/) (attribute)
- [`options_value.number`](/en/tmux/3.7c/reference/c-union-options_value-number/) (attribute)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`OPTIONS_IS_COMMAND`](/en/tmux/3.7c/reference/c-define-options-c-options_is_command/) (constant)
- [`OPTIONS_IS_NUMBER`](/en/tmux/3.7c/reference/c-define-options-c-options_is_number/) (constant)
- [`OPTIONS_IS_STRING`](/en/tmux/3.7c/reference/c-define-options-c-options_is_string/) (constant)
- [`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_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_value`](/en/tmux/3.7c/reference/c-union-options_value/) (union)
- [`options_value.string`](/en/tmux/3.7c/reference/c-union-options_value-string/) (attribute)
- [`options_entry.tableentry`](/en/tmux/3.7c/reference/c-struct-options_entry-tableentry/) (attribute)
- [`options_table_entry.type`](/en/tmux/3.7c/reference/c-struct-options_table_entry-type/) (attribute)
