# options_match_get

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

```c
struct options_entry * options_match_get(struct options *oo, const char *s, int *idx, int only, int *ambiguous)
```

## Parameters

- `oo` (`struct options *`)
- `s` (`const char *`)
- `idx` (`int *`)
- `only` (`int`)
- `ambiguous` (`int *`)

## Calls

- [`options_get`](/en/tmux/3.7c/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L721)
- [`options_get_only`](/en/tmux/3.7c/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L719)
- [`options_match`](/en/tmux/3.7c/reference/c-function-options_match/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L714)

## Referenced declarations

- [`options_entry.name`](/en/tmux/3.7c/reference/c-struct-options_entry-name/) (attribute)
- [`options`](/en/tmux/3.7c/reference/c-struct-options/) (struct)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
