# window_client_cmp

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L127
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-client-c-window_client_cmp/

```c
static int window_client_cmp(const void *a0, const void *b0)
```

## Parameters

- `a0` (`const void *`)
- `b0` (`const void *`)

## Referenced by

- [`window_client_build`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_build/) (function)

## Referenced declarations

- [`client.activity_time`](/en/tmux/3.2a/reference/c-struct-client-activity_time/) (attribute)
- [`window_client_itemdata.c`](/en/tmux/3.2a/reference/c-struct-window_client_itemdata-c/) (attribute)
- [`client.creation_time`](/en/tmux/3.2a/reference/c-struct-client-creation_time/) (attribute)
- [`mode_tree_sort_criteria.field`](/en/tmux/3.2a/reference/c-struct-mode_tree_sort_criteria-field/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`mode_tree_sort_criteria.reversed`](/en/tmux/3.2a/reference/c-struct-mode_tree_sort_criteria-reversed/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`timercmp`](/en/tmux/3.2a/reference/c-define-compat-h-timercmp/) (constant)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`WINDOW_CLIENT_BY_ACTIVITY_TIME`](/en/tmux/3.2a/reference/c-enum-window_client_sort_type-window_client_by_activity_time/) (constant)
- [`WINDOW_CLIENT_BY_CREATION_TIME`](/en/tmux/3.2a/reference/c-enum-window_client_sort_type-window_client_by_creation_time/) (constant)
- [`WINDOW_CLIENT_BY_SIZE`](/en/tmux/3.2a/reference/c-enum-window_client_sort_type-window_client_by_size/) (constant)
- [`window_client_sort`](/en/tmux/3.2a/reference/c-variable-window-client-c-window_client_sort/) (attribute)
