# control_sub_cmp

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L159
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-control-c-control_sub_cmp/

```c
static int control_sub_cmp(struct control_sub *csub1, struct control_sub *csub2)
```

## Parameters

- `csub1` (`struct control_sub *`)
- `csub2` (`struct control_sub *`)

## Referenced by

- [`control_subs_RB_FIND`](/en/tmux/3.2a/reference/c-function-control-c-control_subs_rb_find/) (function)

## Referenced declarations

- [`control_sub`](/en/tmux/3.2a/reference/c-struct-control_sub/) (struct)
- [`control_sub.name`](/en/tmux/3.2a/reference/c-struct-control_sub-name/) (attribute)
