I am trying to call a C function from COBOL and expecting a reply from it. I am new to this interfacing.
COBOL code:
ENTER C "ADD" USING A,B.
C code:
int ADD(int a,int b)
{
return a+b;
}
I want to get the sum value from the C function for further processing in COBOL.
In COBOL
In C
If it is integer declare appropriate variables as per your need :)