# window_cmp

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

```c
int window_cmp(struct window *w1, struct window *w2)
```

## Parameters

- `w1` (`struct window *`)
- `w2` (`struct window *`)

## Referenced by

- [`windows_RB_FIND`](/en/tmux/latest/reference/c-function-windows_rb_find/) (function)

## Referenced declarations

- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
