Function rosidl_runtime_c__String__copy
Defined in File string_functions.h
Function Documentation
-
bool rosidl_runtime_c__String__copy(const rosidl_runtime_c__String *input, rosidl_runtime_c__String *output)
Copy rosidl_runtime_c__String 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 structure to copy from.
output – [out] a pointer to an initialized rosidl_runtime_c__String structure to copy into.
- Returns:
true if successful, false if either pointer is null or memory allocation fails.