Function rcutils_to_native_path

Function Documentation

char *rcutils_to_native_path(const char *path, rcutils_allocator_t allocator)

Return newly allocated string with all argument’s “/” replaced by platform specific separator.

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:
  • path[in]

  • allocator[in]

Returns:

path using platform specific delimiters on success

Returns:

NULL on invalid arguments

Returns:

NULL on failure