# winlink_next_index

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L133
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-c-winlink_next_index/

```c
static int winlink_next_index(struct winlinks *wwl, int idx)
```

## Parameters

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

## Calls

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

## Referenced by

- [`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)
- [`winlinks`](/en/tmux/3.2a/reference/c-struct-winlinks/) (struct)
