# grid_set_cells

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L570
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid_set_cells/

```c
void grid_set_cells(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc, const char *s, size_t slen)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `gc` (`const struct grid_cell *`)
- `s` (`const char *`)
- `slen` (`size_t`)

## Calls

- [`grid_check_y`](/en/tmux/3.2a/reference/c-function-grid-c-grid_check_y/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L578)
- [`grid_expand_line`](/en/tmux/3.2a/reference/c-function-grid-c-grid_expand_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L581)
- [`grid_extended_cell`](/en/tmux/3.2a/reference/c-function-grid-c-grid_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L590)
- [`grid_need_extended_cell`](/en/tmux/3.2a/reference/c-function-grid-c-grid_need_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L589)
- [`grid_store_cell`](/en/tmux/3.2a/reference/c-function-grid-c-grid_store_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L593)
- [`utf8_build_one`](/en/tmux/3.2a/reference/c-function-utf8_build_one/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L591)

## Referenced by

- [`grid_view_set_cells`](/en/tmux/3.2a/reference/c-function-grid_view_set_cells/) (function)
- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`grid_line.celldata`](/en/tmux/3.2a/reference/c-struct-grid_line-celldata/) (attribute)
- [`grid_line.cellused`](/en/tmux/3.2a/reference/c-struct-grid_line-cellused/) (attribute)
- [`grid_extd_entry.data`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-data/) (attribute)
- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`grid.linedata`](/en/tmux/3.2a/reference/c-struct-grid-linedata/) (attribute)
