# format_grid_word

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

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

## Parameters

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

## Called by

- [`format_cb_mouse_word`](/en/tmux/latest/reference/c-function-format-c-format_cb_mouse_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1251)
- [`window_copy_get_word`](/en/tmux/latest/reference/c-function-window_copy_get_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L903)

## Calls

- [`format_is_word_separator`](/en/tmux/latest/reference/c-function-format-c-format_is_word_separator/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6064)
- [`grid_get_cell`](/en/tmux/latest/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6025)
- [`grid_line_length`](/en/tmux/latest/reference/c-function-grid_line_length/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6039)
- [`grid_peek_line`](/en/tmux/latest/reference/c-function-grid_peek_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6035)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6022)
- [`utf8_tocstr`](/en/tmux/latest/reference/c-function-utf8_tocstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6072)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6067)

## Referenced declarations

- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`global_s_options`](/en/tmux/latest/reference/c-variable-global_s_options/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`GRID_FLAG_PADDING`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`GRID_LINE_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
