MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / isEnvVarSpecified

Function isEnvVarSpecified

quest/src/core/envvars.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62bool 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
70string getSpecifiedEnvVarValue(string name) {

Calls

no outgoing calls

Tested by

no test coverage detected