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


Pointer to an array

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

Sample PL/I usage C++ function
MY_PROG: PROC OPTIONS(MAIN);
     DCL CENTRY EXTERNAL ENTRY;
     DCL I(5) FIXED BIN(31,0);
     DCL J FIXED BIN(31);
     DCL P POINTER;
     P = ADDR(I);
     DO J = 1 TO 5;
       I(J) = J;
     END;
     CALL CENTRY (P);
END MY_PROG;
 
#include <stdio.h>

extern "PLI" {
  void centry(**x);
}

void centry(**x)
{
  /*   ...   */
}
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014