Using functions in the system programming C environment

If you do not want to use the z/OS® Language Environment® runtime library and the z/OS XL C runtime component within z/OS Language Environment the following functions are available in the SPC environment:
Additional memory management functions are available in the system programming C environment, as follows:
__4kmalc()
to allocate page-aligned storage
__24malc()
to allocate storage below the 16MB line in ESA systems (where MB is 1048576 bytes) even when HEAP(ANYWHERE) is specified.

Storage allocated by these functions is not part of the heap, so freeing it is your responsibility. You can use the free() function to free the storage before the environment is terminated. Storage allocated using these functions is not automatically freed when the environment is terminated.

In this environment, low-level memory management functions and contents supervision (loading and deleting executable code) are supported by low-level routines that you can replace to support non-standard environments. This is described in Tailoring the system programming C environment.