# grid_reflow_add

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1072
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-grid_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1348)
- [`grid_reflow_move`](/en/tmux/3.2a/reference/c-function-grid-c-grid_reflow_move/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1090)
- [`grid_reflow_split`](/en/tmux/3.2a/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1233)

## Calls

- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1077)

## Referenced declarations

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