# paste_make_sample

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

```c
char * paste_make_sample(struct paste_buffer *pb)
```

## Parameters

- `pb` (`struct paste_buffer *`)

## Called by

- [`format_cb_buffer_sample`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_buffer_sample/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1428)

## Calls

- [`utf8_strvis`](/en/tmux/3.7c/reference/c-function-utf8_strvis/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/paste.c#L344)
- [`xreallocarray`](/en/tmux/3.7c/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/paste.c#L342)

## Referenced declarations

- [`paste_buffer.data`](/en/tmux/3.7c/reference/c-struct-paste_buffer-data/) (attribute)
- [`paste_buffer`](/en/tmux/3.7c/reference/c-struct-paste_buffer/) (struct)
- [`paste_buffer.size`](/en/tmux/3.7c/reference/c-struct-paste_buffer-size/) (attribute)
