How can you get or set an environment variable from a
program?

Answer Posted / amit

to get environment variable execute getenv();
to set environment variable execute setenv();

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Max relax-able permission value with out giving write permission to others?

754


Please describe the initial process sequence while the system boots up?

753


Please explain fork() system call?

720


What is ipc in unix?

736


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

749






Explain what are the system calls used for process management?

685


Explain what is the process id for kernel process?

749


What is fork()?

783


Which ipc is faster?

710


What is ln(linking)?

762


What is the very first process created by kernel?

806


Explain the initial process sequence while the system boots up?

704


How to write the program on full-duplex communication on bidirectional?

730


Explain the system calls used for process management?

706


What are two different models of ipc differentiate both?

772