# utf8_strwidth

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

```c
u_int utf8_strwidth(const struct utf8_data *s, ssize_t n)
```

## Parameters

- `s` (`const struct utf8_data *`)
- `n` (`ssize_t`)

## Called by

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

## Referenced by

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

## Referenced declarations

- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`utf8_data`](/en/tmux/3.2a/reference/c-struct-utf8_data/) (struct)
- [`utf8_data.width`](/en/tmux/3.2a/reference/c-struct-utf8_data-width/) (attribute)
