Function rcutils_get_executable_name
Defined in File process.h
Function Documentation
-
char *rcutils_get_executable_name(rcutils_allocator_t allocator)
Retrieve the current executable name.
This function portably retrieves the current program name and returns a copy of it. It is up to the caller to free the memory.
This function is thread-safe.
- Parameters:
allocator – [in] the allocator to use
- Returns:
The program name on success, or
- Returns:
NULL on failure.