ATLAS Offline Software
SCT_ConditionsUtilities.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #include <cstdlib>
13 
15  namespace CoveritySafe {
17  std::string getenv(const std::string& variableName) {
18  std::string result;
19  const char* pChar{std::getenv(variableName.c_str())};
20  if (pChar) result=pChar;
21  return result;
22  }
23  }
24 }
get_generator_info.result
result
Definition: get_generator_info.py:21
SCT_ConditionsAlgorithms
SCT_SimpleHisto.h C++ projects.
Definition: SCT_ConditionsUtilities.cxx:14
SCT_ConditionsAlgorithms::CoveritySafe::getenv
std::string getenv(const std::string &variableName)
get an environment variable
Definition: SCT_ConditionsUtilities.cxx:17
SCT_ConditionsUtilities.h