namespace cutl { /** * @brief Get the working directory of the current excuting process. * * @return file path of the working directory */ std::string getcwd();
/** * @brief Get the home dir for the current user. * * @return std::string the home directory. */ std::string homedir(); } // namespace cutl
----------------------------------------TestGetcwdAndHomedir---------------------------------------- working directory: /Users/spencer/workspace/common_util Home directory: /Users/spencer