# options_match

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

```c
char * options_match(const char *s, int *idx, int *ambiguous)
```

## Parameters

- `s` (`const char *`)
- `idx` (`int *`)
- `ambiguous` (`int *`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-option.c#L111)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L102)
- [`options_match_get`](/en/tmux/latest/reference/c-function-options_match_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L714)

## Calls

- [`options_map_name`](/en/tmux/latest/reference/c-function-options-c-options_map_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L681)
- [`options_parse`](/en/tmux/latest/reference/c-function-options_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L673)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L704)

## Referenced declarations

- [`options_table_entry.name`](/en/tmux/latest/reference/c-struct-options_table_entry-name/) (attribute)
- [`options_table`](/en/tmux/latest/reference/c-variable-options_table/) (attribute)
