# format_loop_windows

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4741
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-format-c-format_loop_windows/

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

## Parameters

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

## Called by

- [`format_replace`](/en/tmux/latest/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5317)

## Calls

- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4784)
- [`format_add_window_neighbor`](/en/tmux/latest/reference/c-function-format-c-format_add_window_neighbor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4789)
- [`format_choose`](/en/tmux/latest/reference/c-function-format-c-format_choose/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4760)
- [`format_copy_state`](/en/tmux/latest/reference/c-function-format-c-format_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4793)
- [`format_defaults`](/en/tmux/latest/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4781)
- [`format_expand1`](/en/tmux/latest/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4795)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4796)
- [`sort_get_winlinks_session`](/en/tmux/latest/reference/c-function-sort_get_winlinks_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4768)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4765)
- [`xrealloc`](/en/tmux/latest/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4799)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4761)

## Other function references

- [`format_create`](/en/tmux/latest/reference/c-function-format_create/) (function)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`format_tree.c`](/en/tmux/latest/reference/c-struct-format_tree-c/) (attribute)
- [`format_tree.client`](/en/tmux/latest/reference/c-struct-format_tree-client/) (attribute)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`format_tree.flags`](/en/tmux/latest/reference/c-struct-format_tree-flags/) (attribute)
- [`format_expand_state`](/en/tmux/latest/reference/c-struct-format_expand_state/) (struct)
- [`FORMAT_LAST`](/en/tmux/latest/reference/c-define-tmux-h-format_last/) (constant)
- [`format_log`](/en/tmux/latest/reference/c-define-format-c-format_log/) (constant)
- [`FORMAT_WINDOW`](/en/tmux/latest/reference/c-define-tmux-h-format_window/) (constant)
- [`format_expand_state.ft`](/en/tmux/latest/reference/c-struct-format_expand_state-ft/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`winlink.idx`](/en/tmux/latest/reference/c-struct-winlink-idx/) (attribute)
- [`format_tree.item`](/en/tmux/latest/reference/c-struct-format_tree-item/) (attribute)
- [`format_tree.s`](/en/tmux/latest/reference/c-struct-format_tree-s/) (attribute)
- [`sort_crit`](/en/tmux/latest/reference/c-variable-format-c-sort_crit/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
