# grid_store_cell

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

```c
static void grid_store_cell(struct grid_cell_entry *gce, const struct grid_cell *gc, u_char c)
```

## Parameters

- `gce` (`struct grid_cell_entry *`)
- `gc` (`const struct grid_cell *`)
- `c` (`u_char`)

## Called by

- [`grid_set_cell`](/en/tmux/latest/reference/c-function-grid_set_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L612)
- [`grid_set_cells`](/en/tmux/latest/reference/c-function-grid_set_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L647)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/latest/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/latest/reference/c-struct-grid_cell-bg/) (attribute)
- [`COLOUR_FLAG_256`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/latest/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid_cell_entry`](/en/tmux/latest/reference/c-struct-grid_cell_entry/) (struct)
- [`GRID_FLAG_BG256`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_bg256/) (constant)
- [`GRID_FLAG_CLEARED`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_cleared/) (constant)
- [`GRID_FLAG_FG256`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_fg256/) (constant)
