# winlink_find_by_index

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L109
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-cmd-find-c-cmd_find_get_window_with_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L433)
- [`server_client_check_mouse`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L609)
- [`server_link_window`](/en/tmux/3.2a/reference/c-function-server_link_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L260)
- [`session_group_synchronize1`](/en/tmux/3.2a/reference/c-function-session-c-session_group_synchronize1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L669)
- [`session_renumber_windows`](/en/tmux/3.2a/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L732)
- [`session_select`](/en/tmux/3.2a/reference/c-function-session_select/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L465)
- [`spawn_window`](/en/tmux/3.2a/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L124)
- [`window_tree_pull_item`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L167)
- [`winlink_next_index`](/en/tmux/3.2a/reference/c-function-window-c-winlink_next_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L139)
- [`winlink_shuffle_up`](/en/tmux/3.2a/reference/c-function-winlink_shuffle_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1506)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L114)

## Referenced by

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

## Referenced declarations

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