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
#include <stdio.h>

extern "PLI" {
  void cpli (int **);
}

main()
{
  int i, *temp;
  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