C/C++ syntax
In C or C++, use the following syntax to invoke a Language Environment callable service with a feedback code in effect:
Syntax >>-ceexxxx--(parm1, parm2, ...parmn, fc);----------------------><
Use the following syntax to invoke callable services with an omitted feedback code parameter:
Syntax >>-CEExxxx--(parm1, parm2, ...parmn, NULL);--------------------><
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.
#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.