# cmd_resize_window_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L47
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/

tmux command: [`resize-window`](/en/tmux/latest/manual/resize-window/)

```c
static enum cmd_retval cmd_resize_window_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_count`](/en/tmux/latest/reference/c-function-args_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L58)
- [`args_has`](/en/tmux/latest/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L71)
- [`cmd_get_args`](/en/tmux/latest/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L49)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L63)
- [`cmdq_get_target`](/en/tmux/latest/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L50)
- [`default_window_size`](/en/tmux/latest/reference/c-function-default_window_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L102)
- [`recalculate_size`](/en/tmux/latest/reference/c-function-recalculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L112)
- [`strtonum`](/en/tmux/latest/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L61)

## Other function references

- [`args_string`](/en/tmux/latest/reference/c-function-args_string/) (function)
- [`args_strtonum`](/en/tmux/latest/reference/c-function-args_strtonum/) (function)
- [`options_set_number`](/en/tmux/latest/reference/c-function-options_set_number/) (function)

## Referenced by

- [`cmd_resize_window_entry`](/en/tmux/latest/reference/c-variable-cmd_resize_window_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/latest/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/latest/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`window.manual_sx`](/en/tmux/latest/reference/c-struct-window-manual_sx/) (attribute)
- [`window.manual_sy`](/en/tmux/latest/reference/c-struct-window-manual_sy/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`cmd_find_state.s`](/en/tmux/latest/reference/c-struct-cmd_find_state-s/) (attribute)
- [`window.sx`](/en/tmux/latest/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/latest/reference/c-struct-window-sy/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`WINDOW_MAXIMUM`](/en/tmux/latest/reference/c-define-tmux-h-window_maximum/) (constant)
- [`WINDOW_MINIMUM`](/en/tmux/latest/reference/c-define-tmux-h-window_minimum/) (constant)
- [`WINDOW_SIZE_LARGEST`](/en/tmux/latest/reference/c-define-tmux-h-window_size_largest/) (constant)
- [`WINDOW_SIZE_MANUAL`](/en/tmux/latest/reference/c-define-tmux-h-window_size_manual/) (constant)
- [`WINDOW_SIZE_SMALLEST`](/en/tmux/latest/reference/c-define-tmux-h-window_size_smallest/) (constant)
- [`cmd_find_state.wl`](/en/tmux/latest/reference/c-struct-cmd_find_state-wl/) (attribute)
