# cmd_find_client

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1274
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_find_client/

```c
struct client * cmd_find_client(struct cmdq_item *item, const char *target, int quiet)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `target` (`const char *`)
- `quiet` (`int`)

## Called by

- [`cmd_find_get_session`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L269)
- [`cmdq_fire_command`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_fire_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L586)

## Calls

- [`cmd_find_current_client`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_current_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1282)
- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1309)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1312)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1283)

## Referenced by

- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`_PATH_DEV`](/en/tmux/3.2a/reference/c-define-compat-h-_path_dev/) (constant)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`client.entry`](/en/tmux/3.2a/reference/c-struct-client-entry/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`client.ttyname`](/en/tmux/3.2a/reference/c-struct-client-ttyname/) (attribute)
