# options_match

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L625
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L97)
- [`cmd_show_options_exec`](/en/tmux/3.2a/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-show-options.c#L102)
- [`options_match_get`](/en/tmux/3.2a/reference/c-function-options_match_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L673)

## Calls

- [`options_map_name`](/en/tmux/3.2a/reference/c-function-options-c-options_map_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L640)
- [`options_parse`](/en/tmux/3.2a/reference/c-function-options_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L632)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L663)

## Referenced declarations

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