# format_window_name

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L124
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-names-c-format_window_name/

```c
static char * format_window_name(struct window *)
```

## Parameters

- `w` (`struct window *`)

## Calls

- [`format_defaults_pane`](/en/tmux/3.2a/reference/c-function-format_defaults_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L132)
- [`format_defaults_window`](/en/tmux/3.2a/reference/c-function-format_defaults_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L131)
- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L135)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L137)
- [`options_get_string`](/en/tmux/3.2a/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L134)

## Other function references

- [`format_create`](/en/tmux/3.2a/reference/c-function-format_create/) (function)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`FORMAT_WINDOW`](/en/tmux/3.2a/reference/c-define-tmux-h-format_window/) (constant)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`format_tree.w`](/en/tmux/3.2a/reference/c-struct-format_tree-w/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
