# _CP_unlock_all

_CP_unlock_all is equivalent to the unlock BASIC statement.

## Syntax

```
int _CP_unlock_all()
```

## Description

This function returns -1 if
an error occurs. The error code is contained in _CP_errno.

## Example(s)

```
/* Releases all basic locks owned by the current process. */
_CP_unlock_all();
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)
- [_CP_lock](https://d3codex.com/cfunctions/cp-lock/)
- [_CP_unlock](https://d3codex.com/cfunctions/cp-unlock/)
- [_CP_unlock_all](https://d3codex.com/cfunctions/cp-unlock-all/)

---
Source: https://d3codex.com/cfunctions/cp-unlock-all/ - part of the D3Codex reference.
