# paste_add

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L160
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-paste_add/

```c
void paste_add(const char *prefix, char *data, size_t size)
```

## Parameters

- `prefix` (`const char *`)
- `data` (`char *`)
- `size` (`size_t`)

## Called by

- [`input_osc_52`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_52/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2688)
- [`paste_set`](/en/tmux/3.2a/reference/c-function-paste_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L268)
- [`tty_keys_clipboard`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_clipboard/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L1218)
- [`window_copy_copy_buffer`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4089)

## Calls

- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L173)
- [`paste_free`](/en/tmux/3.2a/reference/c-function-paste_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L178)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L186)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L181)

## Other function references

- [`paste_get_name`](/en/tmux/3.2a/reference/c-function-paste_get_name/) (function)

## Referenced declarations

- [`paste_buffer.automatic`](/en/tmux/3.2a/reference/c-struct-paste_buffer-automatic/) (attribute)
- [`paste_buffer.created`](/en/tmux/3.2a/reference/c-struct-paste_buffer-created/) (attribute)
- [`paste_buffer.data`](/en/tmux/3.2a/reference/c-struct-paste_buffer-data/) (attribute)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (attribute)
- [`paste_buffer.name`](/en/tmux/3.2a/reference/c-struct-paste_buffer-name/) (attribute)
- [`paste_buffer.order`](/en/tmux/3.2a/reference/c-struct-paste_buffer-order/) (attribute)
- [`paste_by_name`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_by_name/) (attribute)
- [`paste_by_time`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_by_time/) (attribute)
- [`paste_next_index`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_next_index/) (attribute)
- [`paste_next_order`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_next_order/) (attribute)
- [`paste_num_automatic`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_num_automatic/) (attribute)
- [`paste_buffer.size`](/en/tmux/3.2a/reference/c-struct-paste_buffer-size/) (attribute)
