# utf8_strlen

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

```c
size_t utf8_strlen(const struct utf8_data *s)
```

## Parameters

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

## Called by

- [`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#L1444)
- [`status_prompt_menu_callback`](/en/tmux/3.7c/reference/c-function-status-c-status_prompt_menu_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1948)
- [`status_prompt_paste`](/en/tmux/3.7c/reference/c-function-status-c-status_prompt_paste/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1195)
- [`status_prompt_replace_complete`](/en/tmux/3.7c/reference/c-function-status-c-status_prompt_replace_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1259)
- [`status_prompt_set`](/en/tmux/3.7c/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L720)
- [`status_prompt_update`](/en/tmux/3.7c/reference/c-function-status_prompt_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L791)

## 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)
