# window_copy_cstrtocellpos

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2821
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cstrtocellpos/

```c
static void window_copy_cstrtocellpos(struct grid *, u_int, u_int *, u_int *, const char *)
```

## Parameters

- `gd` (`struct grid *`)
- `ncells` (`u_int`)
- `ppx` (`u_int *`)
- `ppy` (`u_int *`)
- `str` (`const char *`)

## Called by

- [`window_copy_last_regex`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_last_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2744)
- [`window_copy_search_lr_regex`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_lr_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2628)

## Calls

- [`grid_peek_line`](/en/tmux/3.2a/reference/c-function-grid_peek_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2840)
- [`window_copy_cellstring`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cellstring/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2842)
- [`xreallocarray`](/en/tmux/3.2a/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2836)

## Referenced declarations

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