rcutils
master
C API providing common utilities and data structures.
|
Go to the source code of this file.
Functions | |
int | rcutils_get_pid (void) |
Retrieve the current process ID. More... | |
char * | rcutils_get_executable_name (rcutils_allocator_t allocator) |
Retrieve the current executable name. More... | |
int rcutils_get_pid | ( | void | ) |
Retrieve the current process ID.
This function returns the current process ID, and is always successful.
This function is thread-safe.
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.
[in] | allocator | the allocator to use |