# sessions_RB_MINMAX

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

```c
struct session * sessions_RB_MINMAX(struct sessions *head, int val)
```

## Parameters

- `head` (`struct sessions *`)
- `val` (`int`)

## Referenced declarations

- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`sessions`](/en/tmux/3.7c/reference/c-struct-sessions/) (struct)
