Changes the size of an allocated block of memory.
void* INKrealloc (void
*ptr
, unsigned int
size
)
is the pointer
to the memory to reallocate.ptr
is the number
of bytes to allocate.size
Changes the size of the memory block pointed to by
to
ptr
bytes, and returns a
pointer to the new block. Because it may not be possible to simply
extend size
to satisfy a
request to increase the allocated block, the returned pointer
might point to a new block of memory. If
ptr
is
ptr
NULL
, then INKrealloc
behaves like
INKmalloc
and returns a pointer to the
newly-allocated memory.
A pointer to the reallocated memory.