| 52 | #include <string.h> |
| 53 | namespace { |
| 54 | void setenv(const char* var, const char* value, int) { |
| 55 | int vlen = strlen(var); |
| 56 | int len = vlen+strlen(value)+1; |
| 57 | char* buff = new char[len+1]; |
| 58 | strcpy(buff, var); |
| 59 | strcpy(buff+vlen, "="); |
| 60 | strcpy(buff+vlen+1, value); |
| 61 | _putenv(buff); |
| 62 | delete [] buff; |
| 63 | } |
| 64 | |
| 65 | void unsetenv(const char* var) { |
| 66 | int len = strlen(var); |