Function rosidl_runtime_c__String__assign

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.

Parameters:
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.