Use _putenv_s() is a good idea which is faster than strcat() and putenv().
I tried my best to make compatible with setenv() and unsetenv() in glibc, but there still some tests failed.
I think it's stupid to return -1 instead errno, Do you think it should return -1?
Use
_putenv_s()
is a good idea which is faster thanstrcat()
andputenv()
. I tried my best to make compatible withsetenv()
andunsetenv()
in glibc, but there still some tests failed. I think it's stupid to return -1 insteaderrno
, Do you think it should return -1?