# session_cmp

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

```c
int session_cmp(struct session *s1, struct session *s2)
```

## Parameters

- `s1` (`struct session *`)
- `s2` (`struct session *`)

## Referenced by

- [`sessions_RB_FIND`](/en/tmux/3.7c/reference/c-function-sessions_rb_find/) (function)

## Referenced declarations

- [`session.name`](/en/tmux/3.7c/reference/c-struct-session-name/) (attribute)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
