# status_prompt_add_list

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

```c
static void status_prompt_add_list(char ***list, u_int *size, const char *s)
```

## Parameters

- `list` (`char ***`)
- `size` (`u_int *`)
- `s` (`const char *`)

## Called by

- [`status_prompt_complete_list`](/en/tmux/latest/reference/c-function-status-c-status_prompt_complete_list/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1869)

## Calls

- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1845)

## Other function references

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

## Referenced declarations

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