# utf8_copy

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

```c
void utf8_copy(struct utf8_data *to, const struct utf8_data *from)
```

## Parameters

- `to` (`struct utf8_data *`)
- `from` (`const struct utf8_data *`)

## Called by

- [`input_csi_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1791)
- [`input_print`](/en/tmux/latest/reference/c-function-input-c-input_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1222)
- [`input_stop_utf8`](/en/tmux/latest/reference/c-function-input-c-input_stop_utf8/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L789)
- [`input_top_bit_set`](/en/tmux/latest/reference/c-function-input-c-input_top_bit_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2864)
- [`screen_redraw_border_set`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_border_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L61)
- [`screen_select_cell`](/en/tmux/latest/reference/c-function-screen_select_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L637)
- [`screen_write_box_border_set`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_box_border_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L681)
- [`screen_write_text`](/en/tmux/latest/reference/c-function-screen_write_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L498)
- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1654)
- [`status_prompt_redraw_character`](/en/tmux/latest/reference/c-function-status-c-status_prompt_redraw_character/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L825)
- [`window_copy_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5643)

## Referenced declarations

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