Function rosidl_runtime_c__String__assignn
Defined in File string_functions.h
Function Documentation
-
bool rosidl_runtime_c__String__assignn(rosidl_runtime_c__String *str, const char *value, size_t n)
Assign the c string pointer of n characters to the rosidl_runtime_c__String structure.
- Parameters:
str – [inout] a pointer to a string structure
value – [in] c string pointer to be assigned
n – [in] size of the value string
- 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.