13 #ifndef __STOUT_OS_POSIX_ENVIRONMENT_HPP__ 14 #define __STOUT_OS_POSIX_ENVIRONMENT_HPP__ 28 std::map<std::string, std::string> result;
31 std::string entry(env[
index]);
32 size_t position = entry.find_first_of(
'=');
33 if (position == std::string::npos) {
37 result[entry.substr(0, position)] = entry.substr(position + 1);
45 #endif // __STOUT_OS_POSIX_ENVIRONMENT_HPP__ Definition: posix_signalhandler.hpp:23
Result< int > index(const std::string &link)
std::map< std::string, std::string > environment()
Definition: environment.hpp:24
char ** environment()
Definition: environment.hpp:66