# control_sub_pane_cmp

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L167
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-control-c-control_sub_panes_rb_find/) (function)

## Referenced declarations

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