# utf8_strwidth

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L830
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L932)

## Referenced declarations

- [`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)
- [`utf8_data.width`](/en/tmux/3.7c/reference/c-struct-utf8_data-width/) (attribute)
