# default_window_name

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/names.c#L108
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L118)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L181)

## Calls

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

## Referenced declarations

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