# window_copy_expand_search_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1114
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_expand_search_string/

```c
static int window_copy_expand_search_string(struct window_copy_cmd_state *cs)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Called by

- [`window_copy_cmd_search_backward`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_backward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2603)
- [`window_copy_cmd_search_backward_text`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_backward_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2623)
- [`window_copy_cmd_search_forward`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_forward/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2643)
- [`window_copy_cmd_search_forward_text`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_forward_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2663)

## Calls

- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1124)
- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1118)
- [`format_single`](/en/tmux/3.7c/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1125)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1134)

## Referenced declarations

- [`window_copy_cmd_state.args`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-args/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.searchstr`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-searchstr/) (attribute)
- [`window_copy_cmd_state.wargs`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wargs/) (attribute)
- [`window_copy_cmd_state`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
