# window_copy_search_compare

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3569
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_compare/

```c
static int window_copy_search_compare(struct grid *, u_int, u_int, struct grid *, u_int, int)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `sgd` (`struct grid *`)
- `spx` (`u_int`)
- `cis` (`int`)

## Called by

- [`window_copy_search_lr`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_lr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3623)
- [`window_copy_search_rl`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_rl/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3667)

## Calls

- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3575)

## Referenced declarations

- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/3.7c/reference/c-struct-utf8_data-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`GRID_FLAG_TAB`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`utf8_data.size`](/en/tmux/3.7c/reference/c-struct-utf8_data-size/) (attribute)
- [`utf8_data.width`](/en/tmux/3.7c/reference/c-struct-utf8_data-width/) (attribute)
