Unix Interview Questions and Answers

 

How can you get/set an environment variable from a program in UNIX?

Getting the value of an environment variable is done by using `getenv()'. Setting
the value of an environment variable is done by using `putenv()'.

Posted by:Richards