23std::string getEnv(
const char* env)
26 const char* tmp = std::getenv(env);
29 std::string test = tmp;
30 spacesOnly = test.find_first_not_of (
' ') == test.npos;
32 std::cout << __FUNCTION__ <<
"> getEnv - test = " << test << std::endl;
33 std::cout << __FUNCTION__ <<
"> getEnv - spacesOnly =" << spacesOnly << std::endl;
36 if((tmp==
nullptr) || (spacesOnly)){
38 std::cout << __FUNCTION__ <<
"> getEnv - no environment variable \"" << env <<
"\" is set" << std::endl;
40 return (
const char*)
"";
42 std::string stmp = (std::string)tmp+
"/";
44 std::cout << __FUNCTION__ <<
"> getEnv - environment variable \"" << stmp <<
"\" is set" << std::endl;