# options_create

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

```c
struct options * options_create(struct options *parent)
```

## Parameters

- `parent` (`struct options *`)

## Called by

- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L273)
- [`main`](/en/tmux/3.7c/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L506)
- [`window_create`](/en/tmux/3.7c/reference/c-function-window_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L323)
- [`window_pane_create`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1050)

## Calls

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

## Referenced declarations

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