Any solution for clearenv() Function
I have SunOS 5.9 sun4u when i try to compile using cc
i get following error!I couldn't find clearenv() declaration in stdlib.h why?I have in included it in my program.Any idea!
"canceljob.c", line 38: warning: implicit functio declaration: clearenv
Undefinedfirst referenced
symbolin file
clearenvcanceljob.o
ld: fatal: Symbol referencing errors. No output written to a.out
Thank You All!
[439 byte] By [
Kabilan] at [2007-11-26 9:50:54]

# 2
Hai!
Thank you!
But i want to clear the environment variable for users! I have used putenv(xpid) to put new environment variables.FOR THAT I NEED TO REMOVE THE OLD ONES. ANY OTHER WAY TO DO IT! THINK putenv is there.
In Linux clearenv () is present in stdlib.h!
Any way to do it!
# 3
clearenv() is nonstandard extension. Its not in any SUSvx.It is not available on Solaris.If you need to remove environment variables you can do that with unsetenv(3), which removesvariables one-by-one.regards,__Fedor.
SFV at 2007-7-7 1:02:54 >
