Function rcutils_join_path

Function Documentation

char *rcutils_join_path(const char *left_hand_path, const char *right_hand_path, rcutils_allocator_t allocator)

Return newly allocated string with arguments separated by correct delimiter for the platform.

This function allocates memory and returns it to the caller. It is up to the caller to release the memory once it is done with it by calling deallocate on the same allocator passed here.

Parameters:
  • left_hand_path[in]

  • right_hand_path[in]

  • allocator[in]

Returns:

concatenated path on success

Returns:

NULL on invalid arguments

Returns:

NULL on failure