C/C++ syntax

In C or C++, use the following syntax to invoke a Language Environment callable service with a feedback code in effect:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-ceexxxx--(parm1parm2, ...parmnfc);----------------------><

Note: "..." is "and so on," not the C ellipsis operator.

Use the following syntax to invoke callable services with an omitted feedback code parameter:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-CEExxxx--(parm1parm2, ...parmnNULL);--------------------><

See Parameter list for invoking callable services for a description of this syntax.

Language Environment callable services always have a return type of void and should be prototyped as such.

Input strings for callable services are not NULL terminated in C/C++.

You can use the SCEEH.H file leawi.h to declare Language Environment callable services, in conjunction with a C/C++ call to a Language Environment callable service, as shown in Figure 1.

Figure 1. Sample callable services invocation syntax for C/C++
#include <leawi.h>
int main(void)
{
 CEExxxx(parm1, parm2, ... parmn, fc);
 }
 

To help in checking the success of your applications, Language Environment provides FBCHECK in the ceeedcct.h file. FBCHECK compares a feedback code against a condition token you supply to determine whether you receive the feedback code you should.