Function rcutils_reallocf

Function Documentation

void *rcutils_reallocf(void *pointer, size_t size, rcutils_allocator_t *allocator)

Emulate the behavior of reallocf.

This function will return NULL if the allocator is NULL or has NULL for function pointer fields.

Parameters:
  • pointer[inout] to the memory which will be reallocated

  • size[in] in bytes

  • allocator[in] to be used to allocate and deallocate memory