# format_grid_line

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

```c
char * format_grid_line(struct grid *gd, u_int y)
```

## Parameters

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

## Called by

- [`format_cb_mouse_line`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1149)
- [`window_copy_get_line`](/en/tmux/3.2a/reference/c-function-window_copy_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L714)

## Calls

- [`grid_get_cell`](/en/tmux/3.2a/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4874)
- [`utf8_tocstr`](/en/tmux/3.2a/reference/c-function-utf8_tocstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4883)
- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4878)

## Other function references

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

## Referenced declarations

- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`GRID_FLAG_PADDING`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
