MCPcopy Create free account
hub / github.com/PDAL/PDAL / getenv

Method getenv

pdal/util/Utils.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88int 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
99int Utils::setenv(const std::string& env, const std::string& val)

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected