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


Signed one-byte character data

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

Sample Fortran usage C++ function (by Reference)
INTEGER*1 X
X = -5
CALL CENTRY(X)
PRINT *,
1  'UPDATED VALUE IN FORTRAN:', X
END
extern "FORTRAN"
{ void centry(signed char &); }
#include <stdio.h>
void centry(signed char &x)
{
  printf("C char arg value: %d\n",x);
  x -= 1;
}

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014