# grid_reflow_add

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

```c
static struct grid_line * grid_reflow_add(struct grid *gd, u_int n)
```

## Parameters

- `gd` (`struct grid *`)
- `n` (`u_int`)

## Called by

- [`grid_reflow`](/en/tmux/3.7c/reference/c-function-grid_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1506)
- [`grid_reflow_move`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_move/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1248)
- [`grid_reflow_split`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1391)

## Calls

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

## Referenced declarations

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