Function rosidl_runtime_c__String__assign
Defined in File string_functions.h
Function Documentation
-
bool rosidl_runtime_c__String__assign(rosidl_runtime_c__String *str, const char *value)
Assign the c string pointer to the rosidl_runtime_c__String structure.
This function is identical to rosidl_runtime_c__String__assignn() except the length of the c string does not have to be given and therefore the c string must be null terminated.
See also
- Parameters:
str – [inout] a pointer to a rosidl_runtime_c__String structure
value – [in] c string pointer to be assigned
- Returns:
true if successful, false if the passed string pointer is null or if the passed value pointer is null or if the size is higher than SIZE_MAX or if the memory reallocation failed.