This is technically a unix question, but...
It seems that clearenv() is not provided by sun. I'm compiling with gcc. Does anyone know of an alternate way to clear the environment? Thanks.
Printable View
This is technically a unix question, but...
It seems that clearenv() is not provided by sun. I'm compiling with gcc. Does anyone know of an alternate way to clear the environment? Thanks.
>Does anyone know of an alternate way to clear the environment?
Walk through all of the strings in the environ vector, cut out the variable name and call unsetenv on it.