# options_set_number

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

```c
struct options_entry * options_set_number(struct options *oo, const char *name, long long value)
```

## Parameters

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

## Called by

- [`cmd_break_pane_exec`](/en/tmux/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L90)
- [`cmd_rename_window_exec`](/en/tmux/latest/reference/c-function-cmd-rename-window-c-cmd_rename_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-rename-window.c#L61)
- [`cmd_split_window_exec`](/en/tmux/latest/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-split-window.c#L191)
- [`input_exit_rename`](/en/tmux/latest/reference/c-function-input-c-input_exit_rename/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2827)
- [`main`](/en/tmux/latest/reference/c-function-main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L534)
- [`options_from_string`](/en/tmux/latest/reference/c-function-options_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1143)
- [`options_from_string_choice`](/en/tmux/latest/reference/c-function-options-c-options_from_string_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1093)
- [`options_from_string_flag`](/en/tmux/latest/reference/c-function-options-c-options_from_string_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1055)
- [`server_client_key_callback`](/en/tmux/latest/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1415)
- [`server_start`](/en/tmux/latest/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L230)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L184)
- [`window_customize_set_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1109)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L811)
- [`options_default`](/en/tmux/latest/reference/c-function-options_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L815)
- [`options_get_only`](/en/tmux/latest/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L813)

## Other function references

- [`options_parent_table_entry`](/en/tmux/latest/reference/c-function-options-c-options_parent_table_entry/) (function)

## Referenced by

- [`cmd_resize_window_exec`](/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function)

## Referenced declarations

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