# format_create_defaults

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

```c
struct format_tree * format_create_defaults(struct cmdq_item *item, struct client *c, struct session *s, struct winlink *wl, struct window_pane *wp)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `c` (`struct client *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `wp` (`struct window_pane *`)

## Called by

- [`control_check_subs_all_panes`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L917)
- [`control_check_subs_all_windows`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_all_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L1006)
- [`control_check_subs_pane`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L875)
- [`control_check_subs_session`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L839)
- [`control_check_subs_window`](/en/tmux/3.2a/reference/c-function-control-c-control_check_subs_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L965)
- [`format_create_from_state`](/en/tmux/3.2a/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4670)
- [`format_single`](/en/tmux/3.2a/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4627)
- [`screen_redraw_draw_borders_style`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_style/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L667)
- [`status_message_redraw`](/en/tmux/3.2a/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L520)
- [`status_prompt_redraw`](/en/tmux/3.2a/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L677)
- [`status_prompt_set`](/en/tmux/3.2a/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L556)

## Calls

- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4661)

## Other function references

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

## Referenced declarations

- [`format_tree.c`](/en/tmux/3.2a/reference/c-struct-format_tree-c/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`FORMAT_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-format_none/) (constant)
- [`format_tree`](/en/tmux/3.2a/reference/c-struct-format_tree/) (struct)
- [`format_tree.item`](/en/tmux/3.2a/reference/c-struct-format_tree-item/) (attribute)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`format_tree.wl`](/en/tmux/3.2a/reference/c-struct-format_tree-wl/) (attribute)
- [`format_tree.wp`](/en/tmux/3.2a/reference/c-struct-format_tree-wp/) (attribute)
