# getopt

- **Language:** C
- **Kind:** constant
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/compat.h#L438
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-define-compat-h-getopt/

```c
#define getopt(ac, av, o) BSDgetopt(ac, av, o)
```

## Other function references

- [`BSDgetopt`](/en/tmux/3.2a/reference/c-function-bsdgetopt/) (function)

## Referenced by

- [`args_parse`](/en/tmux/3.2a/reference/c-function-args_parse/) (function)
- [`main`](/en/tmux/3.2a/reference/c-function-main/) (function)
