calloc: Reserve and initialize storage

Use this function to reserve 31-bit ECB heap storage for an array of elements and initializes the bits of each element to a value of 0. The reserved storage is aligned for any type of object.

Note: This is a standard C/C++ library function that is supported on the z/TPF system. The following information describes only z/TPF support. For more information about standard C and C++ library functions, see the following websites:

Last updated

  • Changed for PUT11 (information only; no code change).

  • Added for PUT00.

Programming considerations

  • C++ keywords new and delete are not interoperable with the calloc, free, malloc, realloc, calloc64, malloc64, or realloc64 functions.
  • Use the free function to return the storage.