# mode_tree_search_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1045
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-mode-tree-c-mode_tree_search_callback/

```c
static int mode_tree_search_callback(struct client *c, void *data, const char *s, int done)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `s` (`const char *`)
- `done` (`int`)

## Calls

- [`mode_tree_is_lowercase`](/en/tmux/3.7c/reference/c-function-mode-tree-c-mode_tree_is_lowercase/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1059)
- [`mode_tree_search_set`](/en/tmux/3.7c/reference/c-function-mode-tree-c-mode_tree_search_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1060)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L1058)

## Referenced by

- [`mode_tree_key`](/en/tmux/3.7c/reference/c-function-mode_tree_key/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`mode_tree_data.dead`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-dead/) (attribute)
- [`mode_tree_data.search`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-search/) (attribute)
- [`mode_tree_data.search_icase`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-search_icase/) (attribute)
