# _CP_build_msg

_CP_build_msg queues up arguments for _CP_out_msg. This function, in conjunction with _CP_out_msg, is equivalent to the BASIC error statement.
Each parameter is first stacked with _CP_build_msg, and then output with the _CP_out_msg.

## Syntax

```
nt _CP_build_msg(CPSTR * s)
```
Note: Failure to call _CP_out_msg after _CP_build_msg may cause undefined results.

## Example(s)

```
/* Print file not found message */

CPSTR * s = _CP_mkstr("201");
CPSTR * t = _CP_mkstr("myfile");

_CP_build_msg(s);
_CP_build_msg(t);
_CP_out_msg();
```

## See also

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

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