# winlink_find_by_index

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

```c
struct winlink * winlink_find_by_index(struct winlinks *wwl, int idx)
```

## Parameters

- `wwl` (`struct winlinks *`)
- `idx` (`int`)

## Called by

- [`cmd_find_get_window_with_session`](/en/tmux/latest/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#L433)
- [`server_client_check_mouse`](/en/tmux/latest/reference/c-function-server-client-c-server_client_check_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L850)
- [`server_link_window`](/en/tmux/latest/reference/c-function-server_link_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L264)
- [`session_group_synchronize1`](/en/tmux/latest/reference/c-function-session-c-session_group_synchronize1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L666)
- [`session_renumber_windows`](/en/tmux/latest/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L737)
- [`session_select`](/en/tmux/latest/reference/c-function-session_select/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L455)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L123)
- [`window_tree_pull_item`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L158)
- [`winlink_next_index`](/en/tmux/latest/reference/c-function-window-c-winlink_next_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L142)
- [`winlink_shuffle_up`](/en/tmux/latest/reference/c-function-winlink_shuffle_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1773)

## Calls

- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L117)

## Referenced by

- [`cmd_break_pane_exec`](/en/tmux/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function)
- [`winlink_add`](/en/tmux/latest/reference/c-function-winlink_add/) (function)

## Referenced declarations

- [`winlink.idx`](/en/tmux/latest/reference/c-struct-winlink-idx/) (attribute)
- [`winlink`](/en/tmux/latest/reference/c-struct-winlink/) (struct)
- [`winlinks`](/en/tmux/latest/reference/c-struct-winlinks/) (struct)
