Dave's Brain

Browse - 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:

putenv(strdup(s));
if your assignment, s, is a local variable.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.