# utf8_tocstr

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

```c
char * utf8_tocstr(struct utf8_data *src)
```

## Parameters

- `src` (`struct utf8_data *`)

## Called by

- [`format_grid_line`](/en/tmux/3.7c/reference/c-function-format_grid_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6101)
- [`format_grid_word`](/en/tmux/3.7c/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6072)
- [`status_prompt_key`](/en/tmux/3.7c/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1452)
- [`status_prompt_redraw`](/en/tmux/3.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L900)

## Calls

- [`xreallocarray`](/en/tmux/3.7c/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L882)

## Referenced declarations

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