char * rcutils_strdup(const char *str, rcutils_allocator_t allocator)
Return a duplicated string with an allocator, or null if an error occurs.
char * rcutils_strndup(const char *str, size_t string_length, rcutils_allocator_t allocator)
Return a duplicated string with an allocator, or null if an error occurs.