# format_loop_clients

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

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

## Parameters

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

## Called by

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

## Calls

- [`format_copy_state`](/en/tmux/3.7c/reference/c-function-format-c-format_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4895)
- [`format_create`](/en/tmux/3.7c/reference/c-function-format_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4893)
- [`format_defaults`](/en/tmux/3.7c/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4894)
- [`format_expand1`](/en/tmux/3.7c/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4897)
- [`format_free`](/en/tmux/3.7c/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4898)
- [`sort_get_clients`](/en/tmux/3.7c/reference/c-function-sort_get_clients/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4887)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4884)
- [`xrealloc`](/en/tmux/3.7c/reference/c-function-xrealloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4901)

## Referenced declarations

- [`format_tree.flags`](/en/tmux/3.7c/reference/c-struct-format_tree-flags/) (attribute)
- [`format_expand_state`](/en/tmux/3.7c/reference/c-struct-format_expand_state/) (struct)
- [`FORMAT_LAST`](/en/tmux/3.7c/reference/c-define-tmux-h-format_last/) (constant)
- [`format_log`](/en/tmux/3.7c/reference/c-define-format-c-format_log/) (constant)
- [`format_expand_state.ft`](/en/tmux/3.7c/reference/c-struct-format_expand_state-ft/) (attribute)
- [`format_tree.item`](/en/tmux/3.7c/reference/c-struct-format_tree-item/) (attribute)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`format_tree.s`](/en/tmux/3.7c/reference/c-struct-format_tree-s/) (attribute)
- [`sort_crit`](/en/tmux/3.7c/reference/c-variable-format-c-sort_crit/) (attribute)
- [`format_tree.wl`](/en/tmux/3.7c/reference/c-struct-format_tree-wl/) (attribute)
- [`format_tree.wp`](/en/tmux/3.7c/reference/c-struct-format_tree-wp/) (attribute)
