Function rosidl_runtime_c__U16String__assignn_from_char

Function Documentation

bool rosidl_runtime_c__U16String__assignn_from_char(rosidl_runtime_c__U16String *str, const char *value, size_t n)

Assign the c string pointer value of n characters to the rosidl_runtime_c__U16String structure.

This function is identical to rosidl_runtime_c__U16String__assignn() except the type of the value is a c string pointer.

Parameters:
  • str[inout] a pointer to a U16 string structure

  • value[in] c string pointer to be assigned

  • n[in] size of the value string as the number of 8 bit chars

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 not even or is higher than SIZE_MAX or if the memory reallocation failed.