# format_loop_panes

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

```c
static char * format_loop_panes(struct format_expand_state *es, const char *fmt)
```

## Parameters

- `es` (`struct format_expand_state *`)
- `fmt` (`const char *`)

## Called by

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

## Calls

- [`format_choose`](/en/tmux/3.2a/reference/c-function-format-c-format_choose/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3837)
- [`format_copy_state`](/en/tmux/3.2a/reference/c-function-format-c-format_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3853)
- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3852)
- [`format_expand1`](/en/tmux/3.2a/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3855)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3856)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3842)
- [`xrealloc`](/en/tmux/3.2a/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3859)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L3838)

## 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_tree.c`](/en/tmux/3.2a/reference/c-struct-format_tree-c/) (attribute)
- [`format_tree.client`](/en/tmux/3.2a/reference/c-struct-format_tree-client/) (attribute)
- [`window_pane.entry`](/en/tmux/3.2a/reference/c-struct-window_pane-entry/) (attribute)
- [`format_tree.flags`](/en/tmux/3.2a/reference/c-struct-format_tree-flags/) (attribute)
- [`format_expand_state`](/en/tmux/3.2a/reference/c-struct-format_expand_state/) (struct)
- [`format_log`](/en/tmux/3.2a/reference/c-define-format-c-format_log/) (constant)
- [`FORMAT_PANE`](/en/tmux/3.2a/reference/c-define-tmux-h-format_pane/) (constant)
- [`format_expand_state.ft`](/en/tmux/3.2a/reference/c-struct-format_expand_state-ft/) (attribute)
- [`window_pane.id`](/en/tmux/3.2a/reference/c-struct-window_pane-id/) (attribute)
- [`format_tree.item`](/en/tmux/3.2a/reference/c-struct-format_tree-item/) (attribute)
- [`window.panes`](/en/tmux/3.2a/reference/c-struct-window-panes/) (attribute)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`format_tree.w`](/en/tmux/3.2a/reference/c-struct-format_tree-w/) (attribute)
- [`format_tree.wl`](/en/tmux/3.2a/reference/c-struct-format_tree-wl/) (attribute)
