# format_create

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

```c
struct format_tree * format_create(struct client *c, struct cmdq_item *item, int tag, int flags)
```

## Parameters

- `c` (`struct client *`)
- `item` (`struct cmdq_item *`)
- `tag` (`int`)
- `flags` (`int`)

## Calls

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

## Referenced by

- [`cmd_display_message_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function)
- [`cmd_list_buffers_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-buffers-c-cmd_list_buffers_exec/) (function)
- [`cmd_list_clients_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-clients-c-cmd_list_clients_exec/) (function)
- [`cmd_list_keys_commands`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_commands/) (function)
- [`cmd_list_panes_window`](/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_window/) (function)
- [`cmd_list_sessions_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-sessions-c-cmd_list_sessions_exec/) (function)
- [`cmd_list_windows_session`](/en/tmux/3.2a/reference/c-function-cmd-list-windows-c-cmd_list_windows_session/) (function)
- [`cmd_pipe_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function)
- [`cmdq_add_format`](/en/tmux/3.2a/reference/c-function-cmdq_add_format/) (function)
- [`format_create_defaults`](/en/tmux/3.2a/reference/c-function-format_create_defaults/) (function)
- [`format_loop_panes`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_panes/) (function)
- [`format_loop_sessions`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_sessions/) (function)
- [`format_loop_windows`](/en/tmux/3.2a/reference/c-function-format-c-format_loop_windows/) (function)
- [`format_window_name`](/en/tmux/3.2a/reference/c-function-names-c-format_window_name/) (function)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function)
- [`server_client_set_title`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_set_title/) (function)
- [`status_prompt_update`](/en/tmux/3.2a/reference/c-function-status_prompt_update/) (function)
- [`status_redraw`](/en/tmux/3.2a/reference/c-function-status_redraw/) (function)
- [`style_add`](/en/tmux/3.2a/reference/c-function-style_add/) (function)
- [`window_buffer_build`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_build/) (function)
- [`window_buffer_get_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_get_key/) (function)
- [`window_client_get_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_get_key/) (function)
- [`window_tree_get_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_key/) (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)
- [`format_tree.client`](/en/tmux/3.2a/reference/c-struct-format_tree-client/) (attribute)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`format_tree.flags`](/en/tmux/3.2a/reference/c-struct-format_tree-flags/) (attribute)
- [`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)
- [`client.references`](/en/tmux/3.2a/reference/c-struct-client-references/) (attribute)
- [`format_tree.tag`](/en/tmux/3.2a/reference/c-struct-format_tree-tag/) (attribute)
- [`format_tree.tree`](/en/tmux/3.2a/reference/c-struct-format_tree-tree/) (attribute)
