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


Declaration for PL/I calling C

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

PL/I Routine C function
PLIPROG:  Proc options(main, reentrant);
  Dcl cfunc external entry
    returns(fixed bin(31));
  Dcl arg fixed bin(31);
  Dcl a fixed bin(31);
  Arg = 10;
  A = cfunc(arg);
  End;
 
#pragma linkage(CFUNC, PLI)
int CFUNC( int parm ) {

return (5);
}

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014