# window_copy_copy_pipe

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

```c
static void window_copy_copy_pipe(struct window_mode_entry *, struct session *, const char *, const char *, int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `s` (`struct session *`)
- `prefix` (`const char *`)
- `cmd` (`const char *`)
- `set_paste` (`int`)
- `set_clip` (`int`)

## Called by

- [`window_copy_cmd_copy_pipe_no_clear`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_no_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2419)
- [`window_copy_do_copy_end_of_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_do_copy_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1270)
- [`window_copy_do_copy_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_do_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1358)

## Calls

- [`window_copy_copy_buffer`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_copy_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5549)
- [`window_copy_pipe_run`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_pipe_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5547)

## Referenced declarations

- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
