UNIX Operating System Question:
Download Questions PDF

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

Answer:

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

Download UNIX Operating System Interview Questions And Answers PDF

Previous QuestionNext Question
List the system calls used for process management in UNIX?How can a parent and child process communicate?