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. C++ usage (by Reference) Fortran subroutine
extern "FORTRAN"
{ void cfort(signed char &);; }
#include <stdio.h>
main()
{
  signed char x, y;
  x=-5;
  cfort(x);
  printf
    ("Updated value in C: %d\n", x);
}
SUBROUTINE CFORT ( ARG )
INTEGER*1 ARG
PRINT *, 'FORTRAN ARG VALUE:', ARG
ARG = ARG - 1
END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014