# _CP_release_all

_CP_release_all is equivalent to the release BASIC statement.

## Syntax

```
int _CP_release_all()
```

## Description

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

## Example(s)

```
/* Releases all previously set item locks.*/
_CP_release_all();
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)
- [_CP_open](https://d3codex.com/cfunctions/cp-open/)

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