Function rosidl_runtime_c__String__Sequence__copy

Function Documentation

bool rosidl_runtime_c__String__Sequence__copy(const rosidl_runtime_c__String__Sequence *input, rosidl_runtime_c__String__Sequence *output)

Copy rosidl_runtime_c__String__Sequence structure content.

This functions performs a deep copy, as opposed to the shallow copy that plain assignment yields.

Parameters:
  • input[in] a pointer to a rosidl_runtime_c__String__Sequence structure to copy from.

  • output[out] a pointer to an initialized rosidl_runtime_c__String__Sequence structure to copy into.

Returns:

true if successful, false if either pointer is null or memory allocation fails.