...
It is evident from these results that the environment has been relocated as a result of the call to setenv()
.
An environment pointer may also become invalidated by subsequent calls to getenv()
...for more information, see ENV34-C. Do not store objects returned by certain functions.
Noncompliant Code Example (POSIX)
...