# options_string_to_style

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L899
- **Page:** https://libtmux.org/en/tmux/3.2a/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

- [`style_add`](/en/tmux/3.2a/reference/c-function-style_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/style.c#L283)

## Calls

- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L919)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L913)
- [`options_get`](/en/tmux/3.2a/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L906)
- [`style_parse`](/en/tmux/3.2a/reference/c-function-style_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L920)
- [`style_set`](/en/tmux/3.2a/reference/c-function-style_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L915)

## Referenced declarations

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