# window_copy_cellstring

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

```c
static const char * window_copy_cellstring(const struct grid_line *gl, u_int px, size_t *size, int *allocated)
```

## Parameters

- `gl` (`const struct grid_line *`)
- `px` (`u_int`)
- `size` (`size_t *`)
- `allocated` (`int *`)

## Called by

- [`window_copy_cstrtocellpos`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cstrtocellpos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3957)
- [`window_copy_stringify`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3909)

## Calls

- [`utf8_to_data`](/en/tmux/3.7c/reference/c-function-utf8_to_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3822)
- [`xmalloc`](/en/tmux/3.7c/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3831)

## Referenced declarations

- [`grid_line.celldata`](/en/tmux/3.7c/reference/c-struct-grid_line-celldata/) (attribute)
- [`grid_line.cellsize`](/en/tmux/3.7c/reference/c-struct-grid_line-cellsize/) (attribute)
- [`grid_extd_entry.data`](/en/tmux/3.7c/reference/c-struct-grid_extd_entry-data/) (attribute)
- [`utf8_data.data`](/en/tmux/3.7c/reference/c-struct-utf8_data-data/) (attribute)
- [`grid_line.extddata`](/en/tmux/3.7c/reference/c-struct-grid_line-extddata/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`GRID_FLAG_EXTENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`GRID_FLAG_PADDING`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`GRID_FLAG_TAB`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`grid_line`](/en/tmux/3.7c/reference/c-struct-grid_line/) (struct)
- [`utf8_data.size`](/en/tmux/3.7c/reference/c-struct-utf8_data-size/) (attribute)
