Example: Calling an Internal Business Function with a Return Value
This example calls an internal business function that has a return value.
This portion is an example of b550001.h:
/* normal business function header pieces */ ... /* The internal business function prototype must be in the header for other modules to call it */ int i550001(int a, int b);
This portion is an example of b550001.c:
/* normal business function code pieces */
#include <b550001.h>
JDEBFRTN(ID) JDEBFWINAPI TestBSFN(LPBHVRCOM lpBhvrCom,
LPVOID lpVoid,
LPDSB550001 lpDS)
{
...
}
int i550001(int a, int b)
{
a = a + b;
return;
}
This portion is an example of b550002.c:
/* normal business function code pieces */
#include <b550002.h>
#include <b550001.h>
JDEBFRTN(ID) JDEBFWINAPI TestBSFN(LPBHVRCOM lpBhvrCom,
LPVOID lpVoid,
LPDSB550001 lpDS)
{
int total = 0;
int adder1 = 6;
int adder2 = 7;
CALLIBFRET(total,i550001(adder1,adder2));
}