# format_expand1

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

```c
static char * format_expand1(struct format_expand_state *, const char *)
```

## Parameters

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

## Called by

- [`format_bool_op_1`](/en/tmux/latest/reference/c-function-format-c-format_bool_op_1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4564)
- [`format_bool_op_n`](/en/tmux/latest/reference/c-function-format-c-format_bool_op_n/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4591)
- [`format_build_modifiers`](/en/tmux/latest/reference/c-function-format-c-format_build_modifiers/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4454)
- [`format_choose`](/en/tmux/latest/reference/c-function-format-c-format_choose/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4324)
- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5822)
- [`format_expand_time`](/en/tmux/latest/reference/c-function-format_expand_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5809)
- [`format_job_get`](/en/tmux/latest/reference/c-function-format-c-format_job_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L408)
- [`format_loop_clients`](/en/tmux/latest/reference/c-function-format-c-format_loop_clients/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4897)
- [`format_loop_panes`](/en/tmux/latest/reference/c-function-format-c-format_loop_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4854)
- [`format_loop_sessions`](/en/tmux/latest/reference/c-function-format-c-format_loop_sessions/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4668)
- [`format_loop_windows`](/en/tmux/latest/reference/c-function-format-c-format_loop_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4795)
- [`format_replace`](/en/tmux/latest/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5289)
- [`format_session_name`](/en/tmux/latest/reference/c-function-format-c-format_session_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4618)
- [`format_window_name`](/en/tmux/latest/reference/c-function-format-c-format_window_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4697)

## Calls

- [`format_job_get`](/en/tmux/latest/reference/c-function-format-c-format_job_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5703)
- [`format_logging`](/en/tmux/latest/reference/c-function-format-c-format_logging/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5660)
- [`format_replace`](/en/tmux/latest/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5727)
- [`format_skip1`](/en/tmux/latest/reference/c-function-format-c-format_skip1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5721)
- [`format_strftime`](/en/tmux/latest/reference/c-function-format-c-format_strftime/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5655)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5666)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5672)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5640)
- [`xstrndup`](/en/tmux/latest/reference/c-function-xstrndup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5695)

## Other function references

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

## Referenced declarations

- [`format_expand_state.flags`](/en/tmux/latest/reference/c-struct-format_expand_state-flags/) (attribute)
- [`format_tree.flags`](/en/tmux/latest/reference/c-struct-format_tree-flags/) (attribute)
- [`FORMAT_EXPAND_NOJOBS`](/en/tmux/latest/reference/c-define-format-c-format_expand_nojobs/) (constant)
- [`format_expand_state`](/en/tmux/latest/reference/c-struct-format_expand_state/) (struct)
- [`FORMAT_EXPAND_TIME`](/en/tmux/latest/reference/c-define-format-c-format_expand_time/) (constant)
- [`format_log`](/en/tmux/latest/reference/c-define-format-c-format_log/) (constant)
- [`FORMAT_LOOP_LIMIT`](/en/tmux/latest/reference/c-define-format-c-format_loop_limit/) (constant)
- [`format_lower`](/en/tmux/latest/reference/c-variable-format-c-format_lower/) (attribute)
- [`FORMAT_NOJOBS`](/en/tmux/latest/reference/c-define-tmux-h-format_nojobs/) (constant)
- [`format_upper`](/en/tmux/latest/reference/c-variable-format-c-format_upper/) (attribute)
- [`format_expand_state.ft`](/en/tmux/latest/reference/c-struct-format_expand_state-ft/) (attribute)
- [`format_expand_state.loop`](/en/tmux/latest/reference/c-struct-format_expand_state-loop/) (attribute)
- [`format_tree.s`](/en/tmux/latest/reference/c-struct-format_tree-s/) (attribute)
- [`format_expand_state.time`](/en/tmux/latest/reference/c-struct-format_expand_state-time/) (attribute)
- [`format_expand_state.tm`](/en/tmux/latest/reference/c-struct-format_expand_state-tm/) (attribute)
