# _CP_TERM

_CP_TERM terminates a CPSTR* string
with a null character.

## Syntax

```
_CP_TERM(CPSTR* string)
```
Note: The _CP_TERM macro must be used
on all CPSTR* whose _CP_SADDRs are passed to standard
UNIX library routines.

## Example(s)

```
*/ Creates a string and terminates it with a 0, so that ’printf’ can be used. */

CPSTR *s= _CP_mkstr( "Enter name " );
_CP_TERM( s );
printf( _CP_ADDR( s ) );
```

## See also

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

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