# cmd_print

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

```c
char * cmd_print(struct cmd *cmd)
```

## Parameters

- `cmd` (`struct cmd *`)

## Called by

- [`cmd_list_print`](/en/tmux/latest/reference/c-function-cmd_list_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L698)
- [`cmdq_add_message`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L571)
- [`cmdq_fire_command`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_fire_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L613)

## Calls

- [`args_print`](/en/tmux/latest/reference/c-function-args_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L582)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L584)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L586)

## Referenced declarations

- [`cmd.args`](/en/tmux/latest/reference/c-struct-cmd-args/) (attribute)
- [`cmd`](/en/tmux/latest/reference/c-struct-cmd/) (struct)
- [`cmd.entry`](/en/tmux/latest/reference/c-struct-cmd-entry/) (attribute)
- [`cmd_entry.name`](/en/tmux/latest/reference/c-struct-cmd_entry-name/) (attribute)
