_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