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]
# 1
There's no such function as clearenv() neither in stdlib.h nor in any other standard header file I looked in. Maybe you've misspelled it?
MaximKartashev at 2007-7-7 1:02:54 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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!

Kabilan at 2007-7-7 1:02:54 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
hai!Thank you Very much!can u tell me , which header file contains unsetenv() function?Thank You
Kabilan at 2007-7-7 1:02:54 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5
That same <stdlib.h> (and, btw, my bad - it is unsetenv(3C) ).
SFV at 2007-7-7 1:02:54 > top of Java-index,Development Tools,Solaris and Linux Development Tools...