22std::string getEnv(
const char* env)
25 const char* tmp = std::getenv(env);
28 std::string test = tmp;
29 spacesOnly = test.find_first_not_of (
' ') == test.npos;
31 std::cout << __FUNCTION__ <<
"> getEnv - test = " << test << std::endl;
32 std::cout << __FUNCTION__ <<
"> getEnv - spacesOnly =" << spacesOnly << std::endl;
35 if((tmp==
nullptr) || (spacesOnly)){
37 std::cout << __FUNCTION__ <<
"> getEnv - no environment variable \"" << env <<
"\" is set" << std::endl;
39 return (
const char*)
"";
41 std::string stmp = (std::string)tmp+
"/";
43 std::cout << __FUNCTION__ <<
"> getEnv - environment variable \"" << stmp <<
"\" is set" << std::endl;