# control_sub_pane_cmp

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

```c
static int control_sub_pane_cmp(struct control_sub_pane *csp1, struct control_sub_pane *csp2)
```

## Parameters

- `csp1` (`struct control_sub_pane *`)
- `csp2` (`struct control_sub_pane *`)

## Referenced by

- [`control_sub_panes_RB_FIND`](/en/tmux/3.7c/reference/c-function-control-c-control_sub_panes_rb_find/) (function)

## Referenced declarations

- [`control_sub_pane`](/en/tmux/3.7c/reference/c-struct-control_sub_pane/) (struct)
- [`control_sub_pane.idx`](/en/tmux/3.7c/reference/c-struct-control_sub_pane-idx/) (attribute)
- [`control_sub_pane.pane`](/en/tmux/3.7c/reference/c-struct-control_sub_pane-pane/) (attribute)
