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


16-bit signed binary integer

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

Sample Fortran usage C++ function (by Reference)
INTEGER*2 X
X = 5
CALL CENTRY(X)
PRINT *,
1  'UPDATED VALUE IN FORTRAN:', X
END
extern "FORTRAN"
{ void centry(short int &); }
#include <stdio.h>
void centry(short 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