# winlink_stack_push

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

```c
void winlink_stack_push(struct winlink_stack *stack, struct winlink *wl)
```

## Parameters

- `stack` (`struct winlink_stack *`)
- `wl` (`struct winlink *`)

## Called by

- [`session_set_current`](/en/tmux/3.7c/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L486)

## Calls

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

## Referenced declarations

- [`winlink.flags`](/en/tmux/3.7c/reference/c-struct-winlink-flags/) (attribute)
- [`winlink.sentry`](/en/tmux/3.7c/reference/c-struct-winlink-sentry/) (attribute)
- [`winlink`](/en/tmux/3.7c/reference/c-struct-winlink/) (struct)
- [`winlink_stack`](/en/tmux/3.7c/reference/c-struct-winlink_stack/) (struct)
- [`WINLINK_VISITED`](/en/tmux/3.7c/reference/c-define-tmux-h-winlink_visited/) (constant)
