# wait_channels_RB_MINMAX

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L63
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-wait_channels_rb_minmax/

```c
static struct wait_channel * wait_channels_RB_MINMAX(struct wait_channels *head, int val)
```

## Parameters

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

## Referenced declarations

- [`wait_channel`](/en/tmux/3.2a/reference/c-struct-wait_channel/) (struct)
- [`wait_channels`](/en/tmux/3.2a/reference/c-struct-wait_channels/) (struct)
