# status_prompt_paste

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1186
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-status-c-status_prompt_paste/

```c
static int status_prompt_paste(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1646)

## Calls

- [`paste_buffer_data`](/en/tmux/latest/reference/c-function-paste_buffer_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1202)
- [`utf8_append`](/en/tmux/latest/reference/c-function-utf8_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1208)
- [`utf8_open`](/en/tmux/latest/reference/c-function-utf8_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1205)
- [`utf8_set`](/en/tmux/latest/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1217)
- [`utf8_strlen`](/en/tmux/latest/reference/c-function-utf8_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1195)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1203)

## Other function references

- [`paste_get_top`](/en/tmux/latest/reference/c-function-paste_get_top/) (function)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`utf8_data.have`](/en/tmux/latest/reference/c-struct-utf8_data-have/) (attribute)
- [`client.prompt_buffer`](/en/tmux/latest/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_index`](/en/tmux/latest/reference/c-struct-client-prompt_index/) (attribute)
- [`client.prompt_saved`](/en/tmux/latest/reference/c-struct-client-prompt_saved/) (attribute)
- [`paste_buffer.size`](/en/tmux/latest/reference/c-struct-paste_buffer-size/) (attribute)
- [`utf8_data.size`](/en/tmux/latest/reference/c-struct-utf8_data-size/) (attribute)
- [`UTF8_DONE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_done/) (constant)
- [`UTF8_MORE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_more/) (constant)
