# args_strtonum_and_expand

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

```c
long long args_strtonum_and_expand(struct args *args, u_char flag, long long minval, long long maxval, struct cmdq_item *item, char **cause)
```

## Parameters

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

## Called by

- [`cmd_capture_pane_history`](/en/tmux/3.7c/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L196)
- [`cmd_send_keys_exec`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L177)
- [`layout_get_tiled_cell`](/en/tmux/3.7c/reference/c-function-layout_get_tiled_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1342)

## Calls

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

## Other function references

- [`args_find`](/en/tmux/3.7c/reference/c-function-arguments-c-args_find/) (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)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`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)
