# control_stop

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

```c
void control_stop(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`server_client_lost`](/en/tmux/latest/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L464)

## Calls

- [`control_free_block`](/en/tmux/latest/reference/c-function-control-c-control_free_block/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L851)
- [`control_free_sub`](/en/tmux/latest/reference/c-function-control-c-control_free_sub/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L845)
- [`control_reset_offsets`](/en/tmux/latest/reference/c-function-control_reset_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L849)

## Referenced declarations

- [`control_state.all_blocks`](/en/tmux/latest/reference/c-struct-control_state-all_blocks/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROLCONTROL`](/en/tmux/latest/reference/c-define-tmux-h-client_controlcontrol/) (constant)
- [`client.control_state`](/en/tmux/latest/reference/c-struct-client-control_state/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`control_state.read_event`](/en/tmux/latest/reference/c-struct-control_state-read_event/) (attribute)
- [`control_state.subs`](/en/tmux/latest/reference/c-struct-control_state-subs/) (attribute)
- [`control_state.subs_timer`](/en/tmux/latest/reference/c-struct-control_state-subs_timer/) (attribute)
- [`control_state.write_event`](/en/tmux/latest/reference/c-struct-control_state-write_event/) (attribute)
