# _CP_sleep

_CP_sleep is equivalent to the `sleep(*string*)` BASIC statement.

## Syntax

```
int _CP_sleep(CPSTR* string)
```

## Description

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

## Example(s)

```
/* sleep 5 seconds */

CPSTR * s = _CP_mkstr("5");
_CP_sleep(s);
_CP_str_free(s);
```

## See also

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

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