# grid_compare

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

```c
int grid_compare(struct grid *ga, struct grid *gb)
```

## Parameters

- `ga` (`struct grid *`)
- `gb` (`struct grid *`)

## Called by

- [`screen_redraw_make_pane_status`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L655)
- [`status_message_redraw`](/en/tmux/3.7c/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L660)
- [`status_prompt_redraw`](/en/tmux/3.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L964)

## Calls

- [`grid_cells_equal`](/en/tmux/3.7c/reference/c-function-grid_cells_equal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L359)
- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L357)

## Referenced declarations

- [`grid_line.cellsize`](/en/tmux/3.7c/reference/c-struct-grid_line-cellsize/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
- [`grid.sx`](/en/tmux/3.7c/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.7c/reference/c-struct-grid-sy/) (attribute)
