cfunc.build_msg

C Function/C Functions, Releases: AP 6.2

Queues up arguments for _CP_out_msg.

Syntax

int _CP_build_msg(CPSTR * s)

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.

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();

See Also

Command Name Type Description
cfunc.introduction Introductory Overview

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.