# cmd_list_print

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

```c
char * cmd_list_print(const struct cmd_list *cmdlist, int flags)
```

## Parameters

- `cmdlist` (`const struct cmd_list *`)
- `flags` (`int`)

## Called by

- [`args_print_add_value`](/en/tmux/latest/reference/c-function-arguments-c-args_print_add_value/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L523)
- [`args_to_vector`](/en/tmux/latest/reference/c-function-args_to_vector/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L468)
- [`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#L126)
- [`cmd_list_copy`](/en/tmux/latest/reference/c-function-cmd_list_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L660)
- [`key_bindings_add`](/en/tmux/latest/reference/c-function-key_bindings_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L228)
- [`notify_insert_one_hook`](/en/tmux/latest/reference/c-function-notify-c-notify_insert_one_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L48)
- [`options_value_to_string`](/en/tmux/latest/reference/c-function-options-c-options_value_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L139)
- [`window_customize_build_keys`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_keys/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L492)
- [`window_customize_draw_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L627)
- [`window_customize_set_key`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_set_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1274)

## Calls

- [`cmd_print`](/en/tmux/latest/reference/c-function-cmd_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L698)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L695)
- [`xrealloc`](/en/tmux/latest/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L701)

## Referenced by

- [`cmd_list_keys_format_add_key_binding`](/en/tmux/latest/reference/c-function-cmd-list-keys-c-cmd_list_keys_format_add_key_binding/) (function)

## Referenced declarations

- [`cmd_list`](/en/tmux/latest/reference/c-struct-cmd_list/) (struct)
- [`CMD_LIST_PRINT_ESCAPED`](/en/tmux/latest/reference/c-define-tmux-h-cmd_list_print_escaped/) (constant)
- [`CMD_LIST_PRINT_NO_GROUPS`](/en/tmux/latest/reference/c-define-tmux-h-cmd_list_print_no_groups/) (constant)
- [`cmd.group`](/en/tmux/latest/reference/c-struct-cmd-group/) (attribute)
- [`cmd_list.list`](/en/tmux/latest/reference/c-struct-cmd_list-list/) (attribute)
- [`cmd.qentry`](/en/tmux/latest/reference/c-struct-cmd-qentry/) (attribute)
