# format_copy_state

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

```c
static void format_copy_state(struct format_expand_state *to, struct format_expand_state *from, int flags)
```

## Parameters

- `to` (`struct format_expand_state *`)
- `from` (`struct format_expand_state *`)
- `flags` (`int`)

## Called by

- [`format_loop_clients`](/en/tmux/3.7c/reference/c-function-format-c-format_loop_clients/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4895)
- [`format_loop_panes`](/en/tmux/3.7c/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4852)
- [`format_loop_sessions`](/en/tmux/3.7c/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4666)
- [`format_loop_windows`](/en/tmux/3.7c/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4793)

## Referenced by

- [`format_job_get`](/en/tmux/3.7c/reference/c-function-format-c-format_job_get/) (function)
- [`format_replace`](/en/tmux/3.7c/reference/c-function-format-c-format_replace/) (function)

## Referenced declarations

- [`format_expand_state.flags`](/en/tmux/3.7c/reference/c-struct-format_expand_state-flags/) (attribute)
- [`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_expand_state.ft`](/en/tmux/3.7c/reference/c-struct-format_expand_state-ft/) (attribute)
- [`format_expand_state.loop`](/en/tmux/3.7c/reference/c-struct-format_expand_state-loop/) (attribute)
- [`format_expand_state.start_time`](/en/tmux/3.7c/reference/c-struct-format_expand_state-start_time/) (attribute)
- [`format_expand_state.time`](/en/tmux/3.7c/reference/c-struct-format_expand_state-time/) (attribute)
- [`format_expand_state.tm`](/en/tmux/3.7c/reference/c-struct-format_expand_state-tm/) (attribute)
