# args_strtonum

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

```c
long long args_strtonum(struct args *args, u_char flag, long long minval, long long maxval, char **cause)
```

## Parameters

- `args` (`struct args *`)
- `flag` (`u_char`)
- `minval` (`long long`)
- `maxval` (`long long`)
- `cause` (`char **`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L311)
- [`cmd_display_message_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-message.c#L98)
- [`cmd_display_panes_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-panes-c-cmd_display_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L313)

## Calls

- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L918)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L907)

## Other function references

- [`args_find`](/en/tmux/3.7c/reference/c-function-arguments-c-args_find/) (function)

## Referenced by

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

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`ARGS_STRING`](/en/tmux/3.7c/reference/c-enum-args_type-args_string/) (constant)
- [`args_entry.entry`](/en/tmux/3.7c/reference/c-struct-args_entry-entry/) (attribute)
- [`args_value.entry`](/en/tmux/3.7c/reference/c-struct-args_value-entry/) (attribute)
- [`args_value.type`](/en/tmux/3.7c/reference/c-struct-args_value-type/) (attribute)
