On Wed, 9 Mar 2005, Andy Fiddaman wrote:

Unfortunately, not all systems implement setenv() and unsetenv() - Solaris
for example. Can I suggest you re-implement this using putenv() and don't
worry about clearing the environment variables after (since there's no way
to do this on all systems!)

Of course, this relies on putenv() being portable but I think it is (it's
also thread safe, setenv() isn't guaranteed to be on all systems)

I didn't realize setenv wasn't in Solaris, but yeah, you're right in that putenv() is POSIX and setenv() isn't. Okay, I will resubmit with the POSIX functions..



_______________________________________________ http://lurker.clamav.net/list/clamav-devel.html

Reply via email to