# | Line 17 | Line 17 | |
---|---|---|
17 | ||
18 | using namespace std; | |
19 | ||
20 | – | inline string sgetenv(const string& name) |
21 | – | { |
22 | – | char* value = getenv(name.c_str()); |
23 | – | |
24 | – | return value != NULL ? value : ""; |
25 | – | } |
26 | – | |
20 | inline int sputenv(const string& name) | |
21 | { | |
22 | char* value = new char[name.size() + 1]; | |
# | Line 37 | Line 30 | inline int sputenv(const string& name) | |
30 | return code; | |
31 | } | |
32 | ||
40 | – | inline void sunsetenv(const string& name) { unsetenv(name.c_str()); } |
41 | – | |
33 | class TimeZones | |
34 | { | |
35 | private: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |