ajith
October 18th, 1999, 12:24 PM
Hi,
I am writing a code for a unix shell and I am having problems with setting the environment variables. when you say setenv ABC abc what should be done exactly. I was trying to realloc environ and then insert the string into the last but one position of the environment variables and push down the NULL to the next place . Please tell me clearly if anybody knows about this. Do I have to use the putenv function , actually I tried that also but its not working and how should i implement unsetenv..
Thanks,
Ajith
I am writing a code for a unix shell and I am having problems with setting the environment variables. when you say setenv ABC abc what should be done exactly. I was trying to realloc environ and then insert the string into the last but one position of the environment variables and push down the NULL to the next place . Please tell me clearly if anybody knows about this. Do I have to use the putenv function , actually I tried that also but its not working and how should i implement unsetenv..
Thanks,
Ajith