putenv(strdup(s));if your assignment, s, is a local variable.
Programming Tips - Why isn't my putenv() working?
Date: 2010apr28
Language: C/C++
Q. Why isn't my putenv() working?
A. You probably need to do: