Function rcutils_to_native_path
Defined in File filesystem.h
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
deallocateon the same allocator passed here.- Parameters:
path – [in]
allocator – [in]
- Returns:
path using platform specific delimiters on success
- Returns:
NULLon invalid arguments- Returns:
NULLon failure