| 86 | |
| 87 | |
| 88 | int Utils::getenv(const std::string& name, std::string& val) |
| 89 | { |
| 90 | char* value = ::getenv(name.c_str()); |
| 91 | if (value) |
| 92 | val = value; |
| 93 | else |
| 94 | val.clear(); |
| 95 | return value ? 0 : -1; |
| 96 | } |
| 97 | |
| 98 | |
| 99 | int Utils::setenv(const std::string& env, const std::string& val) |