# window_pane_copy_paste

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

```c
static void window_pane_copy_paste(struct window_pane *wp, char *buf, size_t len)
```

## Parameters

- `wp` (`struct window_pane *`)
- `buf` (`char *`)
- `len` (`size_t`)

## Called by

- [`window_pane_paste`](/en/tmux/3.7c/reference/c-function-window_pane_paste/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1352)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1314)

## Other function references

- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function)
- [`window_pane_visible`](/en/tmux/3.7c/reference/c-function-window_pane_visible/) (function)

## Referenced declarations

- [`window_pane.entry`](/en/tmux/3.7c/reference/c-struct-window_pane-entry/) (attribute)
- [`window_pane.event`](/en/tmux/3.7c/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.fd`](/en/tmux/3.7c/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`PANE_INPUTOFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_inputoff/) (constant)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
