# _CP_crt

_CP_crt is equivalent to the crt BASIC statement.

## Syntax

```
int _CP_crt(CPSTR* string)
```

## Description

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

Note: The environment must be set to _CP_pick_env() for this function to work properly.

## Example(s)

```
CPSTR * t = _CP_mkstr("b");
_CP_crt(t);
```

## See also

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

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