_CP_build_msg

_CP_build_msg


_CP_break Index Level _CP_call
Syntax int _CP_build_msg(CPSTR * s)
Category C Interface
Type C Function
Description 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.
Options
See Also C Functions introduction
Example /* 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();
Warnings Failure to call _CP_out_msg after _CP_build_msg may cause undefined results.
Compatibility D3 7.0
_CP_break Index Level _CP_call