# options_string_to_style

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

```c
struct style * options_string_to_style(struct options *oo, const char *name, struct format_tree *ft)
```

## Parameters

- `oo` (`struct options *`)
- `name` (`const char *`)
- `ft` (`struct format_tree *`)

## Called by

- [`status_prompt_area`](/en/tmux/latest/reference/c-function-status-c-status_prompt_area/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L549)
- [`style_add`](/en/tmux/latest/reference/c-function-style_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L399)
- [`style_set_scrollbar_style_from_option`](/en/tmux/latest/reference/c-function-style_set_scrollbar_style_from_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L445)

## Calls

- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L997)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L991)
- [`options_get`](/en/tmux/latest/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L984)
- [`style_parse`](/en/tmux/latest/reference/c-function-style_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L998)
- [`style_set`](/en/tmux/latest/reference/c-function-style_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L993)

## Referenced declarations

- [`options_entry.cached`](/en/tmux/latest/reference/c-struct-options_entry-cached/) (attribute)
- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`options_entry.name`](/en/tmux/latest/reference/c-struct-options_entry-name/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
- [`OPTIONS_IS_STRING`](/en/tmux/latest/reference/c-define-options-c-options_is_string/) (constant)
- [`options_value.string`](/en/tmux/latest/reference/c-union-options_value-string/) (attribute)
- [`options_entry.style`](/en/tmux/latest/reference/c-struct-options_entry-style/) (attribute)
- [`style`](/en/tmux/latest/reference/c-struct-style/) (struct)
- [`options_entry.value`](/en/tmux/latest/reference/c-struct-options_entry-value/) (attribute)
