# utf8_strvis

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

```c
int utf8_strvis(char *dst, const char *src, size_t len, int flag)
```

## Parameters

- `dst` (`char *`)
- `src` (`const char *`)
- `len` (`size_t`)
- `flag` (`int`)

## Called by

- [`paste_make_sample`](/en/tmux/3.2a/reference/c-function-paste_make_sample/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/paste.c#L322)
- [`utf8_stravis`](/en/tmux/3.2a/reference/c-function-utf8_stravis/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L358)
- [`utf8_stravisx`](/en/tmux/3.2a/reference/c-function-utf8_stravisx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L372)
- [`window_buffer_draw`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L247)

## Calls

- [`utf8_append`](/en/tmux/3.2a/reference/c-function-utf8_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L324)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`utf8_data.data`](/en/tmux/3.2a/reference/c-struct-utf8_data-data/) (attribute)
- [`utf8_data.have`](/en/tmux/3.2a/reference/c-struct-utf8_data-have/) (attribute)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`UTF8_DONE`](/en/tmux/3.2a/reference/c-enum-utf8_state-utf8_done/) (constant)
- [`UTF8_MORE`](/en/tmux/3.2a/reference/c-enum-utf8_state-utf8_more/) (constant)
