# tty_keys_find

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L567
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_find/

```c
static struct tty_key * tty_keys_find(struct tty *, const char *, size_t, size_t *)
```

## Parameters

- `tty` (`struct tty *`)
- `buf` (`const char *`)
- `len` (`size_t`)
- `size` (`size_t *`)

## Called by

- [`tty_keys_next1`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_next1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L635)

## Calls

- [`tty_keys_find1`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_find1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L570)

## Referenced by

- [`tty_keys_add`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_add/) (function)

## Referenced declarations

- [`tty.key_tree`](/en/tmux/3.7c/reference/c-struct-tty-key_tree/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`tty_key`](/en/tmux/3.7c/reference/c-struct-tty_key/) (struct)
