# cmd_find

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

```c
const struct cmd_entry * cmd_find(const char *name, char **cause)
```

## Parameters

- `name` (`const char *`)
- `cause` (`char **`)

## Called by

- [`cmd_list_commands`](/en/tmux/3.7c/reference/c-function-cmd-list-commands-c-cmd_list_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-list-commands.c#L94)
- [`cmd_parse`](/en/tmux/3.7c/reference/c-function-cmd_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L522)

## Calls

- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L487)

## Referenced declarations

- [`cmd_entry.alias`](/en/tmux/3.7c/reference/c-struct-cmd_entry-alias/) (attribute)
- [`cmd_entry`](/en/tmux/3.7c/reference/c-struct-cmd_entry/) (struct)
- [`cmd_table`](/en/tmux/3.7c/reference/c-variable-cmd_table/) (attribute)
- [`cmd_entry.name`](/en/tmux/3.7c/reference/c-struct-cmd_entry-name/) (attribute)
