Function rosidl_runtime_c__String__resize
Defined in File string_functions.h
Function Documentation
-
bool rosidl_runtime_c__String__resize(rosidl_runtime_c__String *str, size_t n)
Resize the char pointer.
This function resize the input value pointer.
- Parameters:
str – [inout] a pointer to a rosidl_runtime_c__String structure
n – [in] the new size of the internal buffer
- Returns:
true if successful, false if the passed string pointer is null or if the size is higher than SIZE_MAX or if the memory reallocation failed.