# window_find_by_id_str

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

```c
struct window * window_find_by_id_str(const char *s)
```

## Parameters

- `s` (`const char *`)

## Called by

- [`cmd_find_get_window`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L318)
- [`cmd_find_get_window_with_session`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_window_with_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L367)

## Calls

- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L272)
- [`window_find_by_id`](/en/tmux/3.7c/reference/c-function-window_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L275)

## Referenced declarations

- [`window.id`](/en/tmux/3.7c/reference/c-struct-window-id/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
