In the descriptions below, handleptr designates the address of the handle. All the functions are declared in `malloc.h'; all are GNU extensions.
*handleptr
and returns
a non-null pointer to indicate success.
If r_alloc
can't get the space needed, it stores a null pointer
in *handleptr
, and returns a null pointer.
*handleptr
points to, and stores a null pointer
in *handleptr
to show it doesn't point to an allocated
block any more.
r_re_alloc
adjusts the size of the block that
*handleptr
points to, making it size bytes long. It
stores the address of the resized block in *handleptr
and
returns a non-null pointer to indicate success.
If enough memory is not available, this function returns a null pointer
and does not modify *handleptr
.
Go to the first, previous, next, last section, table of contents.