__malloc24() — Allocate 24-bit storage
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
both | AMODE 64 |
Format
#include <stdlib.h>
void *__malloc24(size_t size);
General description
Reserves a block of storage of size bytes from "below-the-line" storage (that is, below 16 MB).
Returned value
If successful, __malloc24() returns a pointer to the reserved space. The storage space to which the returned value points is always suitably aligned for storage of any type of object.
If not enough storage is available, or
if size was specified as 0, __malloc24()
returns NULL. If __malloc24() returns NULL because there is not enough
storage, it sets errno to one of the following values:
- Error Code
- Description
- ENOMEM
- Insufficient memory is available
Related information
- See the topic about using the system programming C facilities in z/OS XL C/C++ Programming Guide.
- stdlib.h
- calloc() — Reserve and initialize storage
- free() — Free a block of storage
- malloc() — Reserve storage block
- __malloc31() — Allocate 31–bit storage
- realloc() — Change reserved storage block size