# paste_get_top

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

```c
struct paste_buffer * paste_get_top(const char **name)
```

## Parameters

- `name` (`const char **`)

## Called by

- [`cmd_choose_tree_exec`](/en/tmux/3.2a/reference/c-function-cmd-choose-tree-c-cmd_choose_tree_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-choose-tree.c#L93)
- [`cmd_paste_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-paste-buffer-c-cmd_paste_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-paste-buffer.c#L62)
- [`cmd_set_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-buffer.c#L73)
- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4734)
- [`window_copy_append_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4163)

## Referenced by

- [`cmd_save_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_exec/) (function)
- [`input_osc_52`](/en/tmux/3.2a/reference/c-function-input-c-input_osc_52/) (function)
- [`status_prompt_paste`](/en/tmux/3.2a/reference/c-function-status-c-status_prompt_paste/) (function)
- [`window_buffer_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_key/) (function)

## Referenced declarations

- [`paste_buffer.name`](/en/tmux/3.2a/reference/c-struct-paste_buffer-name/) (attribute)
- [`paste_buffer`](/en/tmux/3.2a/reference/c-struct-paste_buffer/) (struct)
- [`paste_by_time`](/en/tmux/3.2a/reference/c-variable-paste-c-paste_by_time/) (attribute)
