# window_copy_stringify

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3889
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_stringify/

```c
static char * window_copy_stringify(struct grid *, u_int, u_int, u_int, char *, u_int *)
```

## Parameters

- `gd` (`struct grid *`)
- `py` (`u_int`)
- `first` (`u_int`)
- `last` (`u_int`)
- `buf` (`char *`)
- `size` (`u_int *`)

## Called by

- [`window_copy_search_jump`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4131)
- [`window_copy_search_lr_regex`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_lr_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3704)
- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4460)
- [`window_copy_search_rl_regex`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_rl_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3763)

## Calls

- [`grid_peek_line`](/en/tmux/latest/reference/c-function-grid_peek_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3902)
- [`window_copy_cellstring`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cellstring/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3909)
- [`xrealloc`](/en/tmux/latest/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3900)

## Referenced declarations

- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
