# args_count

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

```c
u_int args_count(struct args *args)
```

## Parameters

- `args` (`struct args *`)

## Called by

- [`cmd_bind_key_exec`](/en/tmux/3.7c/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-bind-key.c#L63)
- [`cmd_command_prompt_exec`](/en/tmux/3.7c/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L90)
- [`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#L299)
- [`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#L74)
- [`cmd_display_popup_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L402)
- [`cmd_if_shell_exec`](/en/tmux/3.7c/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L83)
- [`cmd_new_session_exec`](/en/tmux/3.7c/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-new-session.c#L83)
- [`cmd_pipe_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-pipe-pane.c#L90)
- [`cmd_refresh_client_exec`](/en/tmux/3.7c/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L211)
- [`cmd_resize_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L92)
- [`cmd_resize_window_exec`](/en/tmux/3.7c/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L58)
- [`cmd_select_layout_exec`](/en/tmux/3.7c/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-select-layout.c#L108)
- [`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#L168)
- [`cmd_server_access_exec`](/en/tmux/3.7c/reference/c-function-cmd-server-access-c-cmd_server_access_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-server-access.c#L83)
- [`cmd_set_buffer_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-buffer.c#L106)
- [`cmd_set_environment_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-environment-c-cmd_set_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-environment.c#L66)
- [`cmd_set_option_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-option.c#L121)
- [`cmd_show_options_exec`](/en/tmux/3.7c/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-options.c#L88)
- [`cmd_split_window_exec`](/en/tmux/3.7c/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#L90)
- [`window_copy_command`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3455)
- [`window_copy_do_copy_end_of_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_do_copy_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1240)
- [`window_copy_do_copy_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_do_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1327)

## Referenced by

- [`cmd_run_shell_exec`](/en/tmux/3.7c/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function)
- [`cmd_source_file_exec`](/en/tmux/3.7c/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function)
- [`cmdq_insert_hook`](/en/tmux/3.7c/reference/c-function-cmdq_insert_hook/) (function)
- [`window_buffer_init`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_init/) (function)
- [`window_client_init`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_init/) (function)
- [`window_tree_init`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`args.count`](/en/tmux/3.7c/reference/c-struct-args-count/) (attribute)
