# _CP_prompt

_CP_prompt is equivalent to the prompt BASIC statement.

## Syntax

```
int _CP_prompt(CPSTR* string)
```

## Description

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

Note: This function does *not* affect UNIX input routines.

## Example(s)

Sets the prompt to ">".

```
CPSTR * s = _CP_mkstr(">");
_CP_prompt(s);
```

## See also

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

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