Code Review
/
aaf
/
sshsm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
da41a62f2ce83b00e8329742b2648564539f474f
[aaf/sshsm.git]
/
SoftHSMv2
/
src
/
lib
/
win32
/
setenv.cpp
1
#include <config.h>
2
#include <stdlib.h>
3
#include <string>
4
5
#ifdef _WIN32
6
7
int
8
setenv(const char *name, const char *value, int overwrite)
9
{
10
std::string vv = name;
11
vv += "=";
12
vv += value;
13
14
if (overwrite != 1)
15
return false;
16
17
return _putenv(vv.c_str()) == 0;
18
}
19
20
#endif