# options_from_string_choice

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L982
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-options-c-options_from_string_choice/

```c
static int options_from_string_choice(const struct options_table_entry *oe, struct options *oo, const char *name, const char *value, char **cause)
```

## Parameters

- `oe` (`const struct options_table_entry *`)
- `oo` (`struct options *`)
- `name` (`const char *`)
- `value` (`const char *`)
- `cause` (`char **`)

## Called by

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

## Calls

- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L989)
- [`options_set_number`](/en/tmux/3.2a/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1004)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1000)

## Referenced declarations

- [`options_table_entry.choices`](/en/tmux/3.2a/reference/c-struct-options_table_entry-choices/) (attribute)
- [`options`](/en/tmux/3.2a/reference/c-struct-options/) (struct)
- [`options_table_entry`](/en/tmux/3.2a/reference/c-struct-options_table_entry/) (struct)
