# server_add_message

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

```c
void server_add_message(const char *fmt,...)
```

## Parameters

- `fmt` (`const char *`)
- `` (`...`)

## Called by

- [`cmdq_add_message`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L583)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L882)
- [`status_message_set`](/en/tmux/latest/reference/c-function-status_message_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L474)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L543)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L551)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L545)
- [`xvasprintf`](/en/tmux/latest/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L540)

## Referenced declarations

- [`message_entry.entry`](/en/tmux/latest/reference/c-struct-message_entry-entry/) (attribute)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`message_log`](/en/tmux/latest/reference/c-variable-message_log/) (attribute)
- [`message_next`](/en/tmux/latest/reference/c-variable-server-c-message_next/) (attribute)
- [`message_entry.msg`](/en/tmux/latest/reference/c-struct-message_entry-msg/) (attribute)
