Function rcutils_reallocf
Defined in File allocator.h
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 isNULL
or hasNULL
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