Function rcutils_get_cwd

Function Documentation

bool rcutils_get_cwd(char *buffer, size_t max_length)

Return current working directory.

Parameters:
  • buffer[in] Allocated string to store current directory path to

  • max_length[in] maximum length to be stored in buffer

Returns:

true if success, or

Returns:

false if buffer is NULL, or

Returns:

false on failure.