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


Unsigned one-byte character data

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

Sample Fortran usage C function (by Reference)
CHARACTER*1 X, Y
X = 'A'
CALL CENTRY(X, Y)
PRINT *,
1  'VALUE RETURNED TO FORTRAN: ', Y
END
#pragma linkage (centry,FORTRAN)
#include <stdio.h>
void centry
  (unsigned char *x, unsigned char *y)
{
  printf("C char arg value: %c\n",*x);
  *y = *x;
}

 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014