In the User Function window:
| Return Type: |
Single |
| Input Parameters: |
long a; OUTPTR b; |
| Output Parameters: |
long z; |
In the state table:
NUMBER func5_long, NUMBER send3_long;
AssignData(send3_long, "ASSIGN", "2") ;
SendData("CUSTOM_SERVER", "TEST_PARMS", 30, "TEST_PARMS_func5", send3_long) ;
ReceiveData("CUSTOM_SERVER", "TEST_PARMS", 30, "TEST_PARMS_func5",
func5_long) ;
So, using the data in SendData (above), func5_long in ReceiveData has a value of 91.
Example code
int TEST_PARMS_func5 (long a, char **b)
{
if (a == 2) {
*(long *)b = 91;
return (0);
} else {
return (-1);
} /* endif */
}