Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:21

0001 
0002 #include <vector>
0003 #include <string>
0004 
0005 #include "OPTICKS_LOG.hh"
0006 #include "SSys.hh"
0007 
0008 
0009 int main(int argc, char** argv)
0010 {
0011     OPTICKS_LOG(argc, argv); 
0012 
0013     std::vector<std::string> keys = {"USER", "HOME", "USER,HOME", "HOME,USER" } ; 
0014 
0015 
0016     for(unsigned i=0 ; i < keys.size() ; i++)
0017     {
0018          const char* key = keys[i].c_str(); 
0019          const char* val = SSys::getenvvar(key) ; 
0020          LOG(info)
0021             << std::setw(25) << key 
0022             << " : "
0023             << std::setw(25) << val
0024             ;
0025     }
0026    
0027 
0028     return 0 ; 
0029 }