z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Address of an integer

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Sample Fortran usage C function
POINTER*4 (P, I)
INTEGER*4 I, J
P = LOC(J)
I = 5
CALL CENTRY(P)
PRINT *,
1  'UPDATED VALUE IN FORTRAN:', I
END
#pragma linkage (centry,FORTRAN)
#include <stdio.h>
void centry(int **x)
{
  printf("C int arg value: %d\n",**x);
  **x += 1;
}

 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014