# format_strip

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

```c
static char * format_strip(struct format_expand_state *es, const char *s)
```

## Parameters

- `es` (`struct format_expand_state *`)
- `s` (`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#L5165)

## Calls

- [`format_check_time`](/en/tmux/latest/reference/c-function-format-c-format_check_time/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4255)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4253)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4257)

## Referenced declarations

- [`format_expand_state`](/en/tmux/latest/reference/c-struct-format_expand_state/) (struct)
