cfunc.build_msg C Function/C Functions

cfunc.build_msg

Command cfunc.build_msg C Function/C Functions
Applicable release versions: AP 6.2
Category C Functions (120)
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.
Syntax int _CP_build_msg(CPSTR * s)
Options
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();
Purpose
Related cfunc.introduction