# options_get_number

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

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

## Parameters

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

## Called by

- [`alerts_action_applies`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_action_applies/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L81)
- [`alerts_check_activity`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_check_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L228)
- [`alerts_check_bell`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_check_bell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L190)
- [`alerts_check_silence`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_check_silence/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L264)
- [`alerts_enabled`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_enabled/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L115)
- [`alerts_reset`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L150)
- [`alerts_set_message`](/en/tmux/3.2a/reference/c-function-alerts-c-alerts_set_message/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/alerts.c#L308)
- [`check_window_name`](/en/tmux/3.2a/reference/c-function-check_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L63)
- [`cmd_display_menu_get_position`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_menu_get_position/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L110)
- [`cmd_display_panes_draw_pane`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_draw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L118)
- [`cmd_display_panes_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L275)
- [`cmd_list_keys_get_prefix`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_get_prefix/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L136)
- [`cmd_send_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-send-keys.c#L192)
- [`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#L228)
- [`format_cb_pane_at_bottom`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_at_bottom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1073)
- [`format_cb_pane_at_top`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_at_top/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1051)
- [`format_cb_pane_synchronized`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_synchronized/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1888)
- [`input_csi_dispatch`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1393)
- [`input_exit_rename`](/en/tmux/3.2a/reference/c-function-input-c-input_exit_rename/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2383)
- [`input_key`](/en/tmux/3.2a/reference/c-function-input_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input-keys.c#L437)
- [`input_osc_52`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_52/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2638)
- [`layout_fix_panes`](/en/tmux/3.2a/reference/c-function-layout_fix_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L295)
- [`layout_resize_check`](/en/tmux/3.2a/reference/c-function-layout-c-layout_resize_check/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L342)
- [`layout_split_pane`](/en/tmux/3.2a/reference/c-function-layout_split_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L885)
- [`layout_spread_cell`](/en/tmux/3.2a/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L1064)
- [`options_from_string_choice`](/en/tmux/3.2a/reference/c-function-options-c-options_from_string_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L989)
- [`options_push_changes`](/en/tmux/3.2a/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1092)
- [`paste_add`](/en/tmux/3.2a/reference/c-function-paste_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L173)
- [`recalculate_size`](/en/tmux/3.2a/reference/c-function-recalculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L307)
- [`screen_redraw_set_context`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_set_context/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L582)
- [`screen_redraw_update`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L550)
- [`screen_reinit`](/en/tmux/3.2a/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L104)
- [`server_add_message`](/en/tmux/3.2a/reference/c-function-server_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L532)
- [`server_check_unattached`](/en/tmux/3.2a/reference/c-function-server_check_unattached/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L480)
- [`server_client_check_redraw`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1968)
- [`server_client_key_callback`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1263)
- [`server_client_loop`](/en/tmux/3.2a/reference/c-function-server_client_loop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1405)
- [`server_client_reset_state`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_reset_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1724)
- [`server_destroy_pane`](/en/tmux/3.2a/reference/c-function-server_destroy_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L327)
- [`server_destroy_session`](/en/tmux/3.2a/reference/c-function-server_destroy_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L439)
- [`server_loop`](/en/tmux/3.2a/reference/c-function-server-c-server_loop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L268)
- [`server_renumber_session`](/en/tmux/3.2a/reference/c-function-server_renumber_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L225)
- [`session_renumber_windows`](/en/tmux/3.2a/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L706)
- [`session_update_activity`](/en/tmux/3.2a/reference/c-function-session_update_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L289)
- [`spawn_pane`](/en/tmux/3.2a/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L238)
- [`status_line_size`](/en/tmux/3.2a/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L230)
- [`status_message_set`](/en/tmux/3.2a/reference/c-function-status_message_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L448)
- [`status_prompt_complete_list_menu`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_complete_list_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1556)
- [`status_prompt_complete_window_menu`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_complete_window_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L1649)
- [`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#L1061)
- [`status_redraw`](/en/tmux/3.2a/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L360)
- [`status_timer_callback`](/en/tmux/3.2a/reference/c-function-status-c-status_timer_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L163)
- [`status_update_cache`](/en/tmux/3.2a/reference/c-function-status_update_cache/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L199)
- [`tty_keys_next`](/en/tmux/3.2a/reference/c-function-tty_keys_next/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L789)
- [`tty_update_features`](/en/tmux/3.2a/reference/c-function-tty_update_features/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L461)
- [`window_clock_draw_screen`](/en/tmux/3.2a/reference/c-function-window-clock-c-window_clock_draw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-clock.c#L219)
- [`window_copy_append_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4156)
- [`window_copy_command`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2439)
- [`window_copy_common_init`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_common_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L415)
- [`window_copy_copy_buffer`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4082)
- [`window_copy_cursor_next_word_end`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_next_word_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4723)
- [`window_copy_cursor_next_word_end_pos`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_next_word_end_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4693)
- [`window_copy_get_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_get_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4013)
- [`window_copy_search`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3139)
- [`window_copy_update_style`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_style/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3539)
- [`window_customize_draw_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_draw_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L765)
- [`window_customize_set_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1086)
- [`window_find_string`](/en/tmux/3.2a/reference/c-function-window_find_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L550)
- [`window_pane_at_index`](/en/tmux/3.2a/reference/c-function-window_pane_at_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L723)
- [`window_pane_find_down`](/en/tmux/3.2a/reference/c-function-window_pane_find_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1335)
- [`window_pane_find_up`](/en/tmux/3.2a/reference/c-function-window_pane_find_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1278)
- [`window_pane_index`](/en/tmux/3.2a/reference/c-function-window_pane_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L761)
- [`window_pane_key`](/en/tmux/3.2a/reference/c-function-window_pane_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1183)
- [`window_tree_draw_session`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L545)
- [`window_tree_draw_window`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L678)

## Calls

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

## Referenced by

- [`cmd_break_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function)
- [`cmd_move_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function)
- [`options_from_string_flag`](/en/tmux/3.2a/reference/c-function-options-c-options_from_string_flag/) (function)
- [`screen_write_alternateoff`](/en/tmux/3.2a/reference/c-function-screen_write_alternateoff/) (function)
- [`screen_write_alternateon`](/en/tmux/3.2a/reference/c-function-screen_write_alternateon/) (function)
- [`server_client_assume_paste`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_assume_paste/) (function)
- [`server_client_update_latest`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_update_latest/) (function)
- [`server_link_window`](/en/tmux/3.2a/reference/c-function-server_link_window/) (function)
- [`spawn_window`](/en/tmux/3.2a/reference/c-function-spawn_window/) (function)
- [`status_timer_start`](/en/tmux/3.2a/reference/c-function-status_timer_start/) (function)
- [`window_copy_key_table`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_key_table/) (function)
- [`window_pane_copy_key`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_copy_key/) (function)

## Referenced declarations

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