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


Pointer to an integer

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 FIXED BIN(31);
    DCL P POINTER;
    P = ADDR(I);
    I = 5;
    CALL CENTRY (P);
END MY_PROG;
 
#pragma linkage (centry,PLI)
#include <stdio.h>
void centry(int **x)
{
  printf("Value is %d\n",**x);
}
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014