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


Using storage functions in C to C++ ILC

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

Use the following guidelines if you mix HLL storage constructs:
  • If the storage was allocated using Language Environment services, free it using Language Environment services.
  • If the storage was allocated using C functions such as malloc(), calloc, or realloc(), free it using free();
  • If the storage was allocated using the C++ new keyword then it must be deleted with delete.
  • If your program requires that storage be allocated in one language and deleted in another, use the Language Environment services.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014