# xvasprintf

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

```c
int xvasprintf(char **ret, const char *fmt, va_list ap)
```

## Parameters

- `ret` (`char **`)
- `fmt` (`const char *`)
- `ap` (`va_list`)

## Called by

- [`args_print_add`](/en/tmux/latest/reference/c-function-arguments-c-args_print_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L500)
- [`cfg_add_cause`](/en/tmux/latest/reference/c-function-cfg_add_cause/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L213)
- [`cmd_log_argv`](/en/tmux/latest/reference/c-function-cmd_log_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L243)
- [`cmdq_add_format`](/en/tmux/latest/reference/c-function-cmdq_add_format/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L266)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L873)
- [`cmdq_insert_hook`](/en/tmux/latest/reference/c-function-cmdq_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L380)
- [`control_vwrite`](/en/tmux/latest/reference/c-function-control-c-control_vwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L400)
- [`control_write`](/en/tmux/latest/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L427)
- [`environ_set`](/en/tmux/latest/reference/c-function-environ_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L122)
- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3940)
- [`format_log1`](/en/tmux/latest/reference/c-function-format-c-format_log1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L283)
- [`format_printf`](/en/tmux/latest/reference/c-function-format-c-format_printf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L510)
- [`input_reply`](/en/tmux/latest/reference/c-function-input-c-input_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1160)
- [`options_set_string`](/en/tmux/latest/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L775)
- [`screen_write_strlen`](/en/tmux/latest/reference/c-function-screen_write_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L413)
- [`screen_write_text`](/en/tmux/latest/reference/c-function-screen_write_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L456)
- [`screen_write_vnputs`](/en/tmux/latest/reference/c-function-screen_write_vnputs/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L567)
- [`server_add_message`](/en/tmux/latest/reference/c-function-server_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L540)
- [`status_message_set`](/en/tmux/latest/reference/c-function-status_message_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L468)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/xmalloc.c#L115)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/xmalloc.c#L129)
