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 C usage PL/I subroutine
#pragma linkage (cpli,PLI)
#include <stdio.h>
main()
{
  int i, *temp;
  void cpli (int **);
  i = 5;
  temp=&i;
  cpli(&temp);
}
 
CPLI: PROC (ARG);
    DCL ARG POINTER;
    DCL ART FIXED BIN(31,0) BASED (ARG);
⋮
    END;
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014