# options_find_choice

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

```c
int options_find_choice(const struct options_table_entry *oe, const char *value, char **cause)
```

## Parameters

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

## Called by

- [`cmd_display_menu_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L359)
- [`cmd_display_popup_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L477)
- [`options_from_string_choice`](/en/tmux/3.7c/reference/c-function-options-c-options_from_string_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1089)

## Calls

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

## Referenced declarations

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