# options_from_string_choice

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1079
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1163)

## Calls

- [`options_find_choice`](/en/tmux/latest/reference/c-function-options_find_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1089)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1085)
- [`options_set_number`](/en/tmux/latest/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1093)

## Referenced declarations

- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
- [`options_table_entry`](/en/tmux/latest/reference/c-struct-options_table_entry/) (struct)
