Hi,
Trying to use the Metal C runtime library under z/OS 2.1.
I initialize the Metal C environment for amode 64 using the replacable heap option:
Every invocation of a library function generates this error: "Expecting pointer to struct or union".
From the listing I see this when I try to malloc 64 bytes:
578 170 | tempstg = (char *)malloc(64); | 578 578 170 + tempstg = (char *)((___MALLOC * ) ( (*(struct __cvt_s * __ptr32 * __ptr32)16) -> __cvtecvt ->\+ 578===========> ..................................................................................a...............*=ERROR===========> a - CCN3122 Expecting pointer to struct or union.
I have the required define before the include of any Metal C headers:
#define __METAL_CSYSENV_VERSION 2
I then include both <metal.h> and <stdlib.h>.
That's all that the compiler and included headers should need to build the malloc call sequence correctly. Right?
Is this a bug, or am I doing something wrong?
Frank
Frank_O_Myers@IBM