Function xrealloc(void *, size_t)

Function Documentation

void *xrealloc(void *ptr, size_t size)

Reallocates an existing xalloc block to a new size

Reallocates a memory block previously allocated with xalloc.

Parameters
  • ptr[in] - a pointer to a previously allocated memory using xalloc.

  • size[in] - the size of the new block

  • ptr[in] - a pointer to a block created with xalloc.

  • size[in] - the client requested block size to create.