# default_window_name

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

```c
char * default_window_name(struct window *w)
```

## Parameters

- `w` (`struct window *`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-break-pane.c#L108)
- [`spawn_window`](/en/tmux/3.2a/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L185)

## Calls

- [`cmd_stringify_argv`](/en/tmux/3.2a/reference/c-function-cmd_stringify_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L114)
- [`parse_window_name`](/en/tmux/3.2a/reference/c-function-parse_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L116)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/names.c#L113)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`window_pane.argc`](/en/tmux/3.2a/reference/c-struct-window_pane-argc/) (attribute)
- [`window_pane.argv`](/en/tmux/3.2a/reference/c-struct-window_pane-argv/) (attribute)
- [`window_pane.shell`](/en/tmux/3.2a/reference/c-struct-window_pane-shell/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
