| 60 | |
| 61 | |
| 62 | bool isEnvVarSpecified(string name) { |
| 63 | |
| 64 | // note var="" is considered unspecified, but var=" " is specified |
| 65 | const char* ptr = std::getenv(name.c_str()); |
| 66 | return (ptr != nullptr) && (ptr[0] != '\0'); |
| 67 | } |
| 68 | |
| 69 | |
| 70 | string getSpecifiedEnvVarValue(string name) { |
no outgoing calls
no test coverage detected