# options_get_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L686
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-options_get_string/

```c
const char * options_get_string(struct options *oo, const char *name)
```

## Parameters

- `oo` (`struct options *`)
- `name` (`const char *`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L377)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L233)
- [`default_window_size`](/en/tmux/3.2a/reference/c-function-default_window_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L252)
- [`environ_for_session`](/en/tmux/3.2a/reference/c-function-environ_for_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/environ.c#L258)
- [`format_grid_word`](/en/tmux/3.2a/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4806)
- [`format_window_name`](/en/tmux/3.2a/reference/c-function-names-c-format_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L134)
- [`layout_set_main_h`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L205)
- [`layout_set_main_v`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L303)
- [`options_from_string`](/en/tmux/3.2a/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1039)
- [`popup_editor`](/en/tmux/3.2a/reference/c-function-popup_editor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L414)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L424)
- [`server_client_dispatch_shell`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2338)
- [`server_client_exec`](/en/tmux/3.2a/reference/c-function-server_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L459)
- [`server_client_get_key_table`](/en/tmux/3.2a/reference/c-function-server_client_get_key_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L186)
- [`server_client_set_title`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_set_title/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1999)
- [`server_lock_client`](/en/tmux/3.2a/reference/c-function-server_lock_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L165)
- [`spawn_pane`](/en/tmux/3.2a/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L274)
- [`status_prompt_find_history_file`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_find_history_file/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L64)
- [`status_prompt_key`](/en/tmux/3.2a/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1143)
- [`tty_set_italics`](/en/tmux/3.2a/reference/c-function-tty-c-tty_set_italics/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L625)
- [`window_copy_cmd_next_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_next_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1535)
- [`window_copy_cmd_next_word_end`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_next_word_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1549)
- [`window_copy_cmd_previous_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_previous_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1636)
- [`window_copy_cmd_select_word`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_select_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1794)
- [`window_copy_pipe_run`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_pipe_run/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4101)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L692)
- [`options_get`](/en/tmux/3.2a/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L690)

## Referenced by

- [`cmd_select_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function)

## Referenced declarations

- [`options_entry.name`](/en/tmux/3.2a/reference/c-struct-options_entry-name/) (attribute)
- [`options`](/en/tmux/3.2a/reference/c-struct-options/) (struct)
- [`OPTIONS_IS_STRING`](/en/tmux/3.2a/reference/c-define-options-c-options_is_string/) (constant)
- [`options_value.string`](/en/tmux/3.2a/reference/c-union-options_value-string/) (attribute)
- [`options_entry.value`](/en/tmux/3.2a/reference/c-struct-options_entry-value/) (attribute)
