# grid_cells_equal

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

```c
int grid_cells_equal(const struct grid_cell *gc1, const struct grid_cell *gc2)
```

## Parameters

- `gc1` (`const struct grid_cell *`)
- `gc2` (`const struct grid_cell *`)

## Called by

- [`grid_compare`](/en/tmux/3.7c/reference/c-function-grid_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L359)
- [`screen_write_cell`](/en/tmux/3.7c/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2549)
- [`status_redraw`](/en/tmux/3.7c/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L397)
- [`tty_reset`](/en/tmux/3.7c/reference/c-function-tty_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2286)

## Calls

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

## 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`](/en/tmux/3.7c/reference/c-struct-grid_cell/) (struct)
- [`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)
