malloc: Reserve storage block

This function reserves a block of 31-bit ECB heap storage. Unlike the calloc function, the contents of the allocated storage are unknown. 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.