# utf8_update_width_cache

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

```c
void utf8_update_width_cache(void)
```

## Called by

- [`options_push_changes`](/en/tmux/latest/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1257)
- [`server_start`](/en/tmux/latest/reference/c-function-server_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L211)

## Calls

- [`options_array_first`](/en/tmux/latest/reference/c-function-options_array_first/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L426)
- [`options_array_next`](/en/tmux/latest/reference/c-function-options_array_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L429)
- [`options_get`](/en/tmux/latest/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L425)
- [`utf8_add_to_width_cache`](/en/tmux/latest/reference/c-function-utf8-c-utf8_add_to_width_cache/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L428)

## Other function references

- [`options_array_item_value`](/en/tmux/latest/reference/c-function-options_array_item_value/) (function)

## Referenced declarations

- [`utf8_width_item.allocated`](/en/tmux/latest/reference/c-struct-utf8_width_item-allocated/) (attribute)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`nitems`](/en/tmux/latest/reference/c-define-tmux-h-nitems/) (constant)
- [`utf8_default_width_cache`](/en/tmux/latest/reference/c-variable-utf8-c-utf8_default_width_cache/) (attribute)
