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.
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.
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
>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.
The information given in this message is known to work on FreeBSD 4.8 STABLE.
*The above statement is false if I was too lazy to test it.*
Please take note that I am not a technical writer, nor do I care to become one.
If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
Don't assume that I'm ever entirely serious or entirely joking.