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


Short floating-point number

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

Sample Fortran usage C function (by Reference)
REAL*4 X, Y, CENTRY
X = 5.0
Y = CENTRY(X)
PRINT *,
1  'VALUE RETURNED TO FORTRAN:', Y
END
#pragma linkage (centry,FORTRAN)
#include <stdio.h>
float centry(float *x)
{
  printf("C float arg value: %f\n",*x);
  return(*x);
}

 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014