# args_string

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

```c
const char * args_string(struct args *args, u_int idx)
```

## Parameters

- `args` (`struct args *`)
- `idx` (`u_int`)

## Called by

- [`cmd_display_menu_exec`](/en/tmux/latest/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#L328)
- [`cmd_display_message_exec`](/en/tmux/latest/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#L107)
- [`cmd_display_popup_exec`](/en/tmux/latest/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#L452)
- [`cmd_find_window_exec`](/en/tmux/latest/reference/c-function-cmd-find-window-c-cmd_find_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find-window.c#L50)
- [`cmd_list_commands`](/en/tmux/latest/reference/c-function-cmd-list-commands-c-cmd_list_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L89)
- [`cmd_run_shell_exec`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L136)
- [`cmd_select_layout_exec`](/en/tmux/latest/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#L109)
- [`cmd_send_keys_inject_string`](/en/tmux/latest/reference/c-function-cmd-send-keys-c-cmd_send_keys_inject_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L108)
- [`cmd_set_environment_exec`](/en/tmux/latest/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#L52)
- [`cmd_set_option_exec`](/en/tmux/latest/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#L124)
- [`cmd_show_environment_exec`](/en/tmux/latest/reference/c-function-cmd-show-environment-c-cmd_show_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-environment.c#L104)
- [`cmd_source_file_exec`](/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L204)
- [`cmd_unbind_key_exec`](/en/tmux/latest/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-unbind-key.c#L47)
- [`cmd_wait_for_exec`](/en/tmux/latest/reference/c-function-cmd-wait-for-c-cmd_wait_for_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-wait-for.c#L124)
- [`window_copy_cmd_copy_pipe_no_clear`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_no_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2409)
- [`window_copy_cmd_copy_selection_no_clear`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_selection_no_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1414)
- [`window_copy_cmd_goto_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_goto_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2490)
- [`window_copy_cmd_jump_backward`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_jump_backward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2503)
- [`window_copy_cmd_jump_forward`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_jump_forward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2521)
- [`window_copy_cmd_jump_to_backward`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_jump_to_backward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2539)
- [`window_copy_cmd_jump_to_forward`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_jump_to_forward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2557)
- [`window_copy_cmd_pipe_no_clear`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_pipe_no_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2456)
- [`window_copy_cmd_search_backward_incremental`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_search_backward_incremental/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2681)
- [`window_copy_cmd_search_forward_incremental`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_search_forward_incremental/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2738)
- [`window_copy_cmd_selection_mode`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_selection_mode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2064)
- [`window_copy_command`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3461)
- [`window_copy_do_copy_end_of_line`](/en/tmux/latest/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#L1244)
- [`window_copy_do_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_do_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1330)
- [`window_copy_expand_search_string`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_expand_search_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1118)

## Calls

- [`args_value_as_string`](/en/tmux/latest/reference/c-function-arguments-c-args_value_as_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L735)

## Referenced by

- [`cmd_bind_key_exec`](/en/tmux/latest/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/) (function)
- [`cmd_display_menu_args_parse`](/en/tmux/latest/reference/c-function-cmd-display-menu-c-cmd_display_menu_args_parse/) (function)
- [`cmd_if_shell_exec`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)
- [`cmd_list_keys_exec`](/en/tmux/latest/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function)
- [`cmd_load_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_exec/) (function)
- [`cmd_pipe_pane_exec`](/en/tmux/latest/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function)
- [`cmd_refresh_client_exec`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function)
- [`cmd_rename_session_exec`](/en/tmux/latest/reference/c-function-cmd-rename-session-c-cmd_rename_session_exec/) (function)
- [`cmd_rename_window_exec`](/en/tmux/latest/reference/c-function-cmd-rename-window-c-cmd_rename_window_exec/) (function)
- [`cmd_resize_pane_exec`](/en/tmux/latest/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function)
- [`cmd_resize_window_exec`](/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function)
- [`cmd_save_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_exec/) (function)
- [`cmd_server_access_exec`](/en/tmux/latest/reference/c-function-cmd-server-access-c-cmd_server_access_exec/) (function)
- [`cmd_set_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)
- [`cmd_split_window_exec`](/en/tmux/latest/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function)
- [`cmdq_insert_hook`](/en/tmux/latest/reference/c-function-cmdq_insert_hook/) (function)
- [`window_buffer_init`](/en/tmux/latest/reference/c-function-window-buffer-c-window_buffer_init/) (function)
- [`window_client_init`](/en/tmux/latest/reference/c-function-window-client-c-window_client_init/) (function)
- [`window_tree_init`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

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