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

Answers were Sorted based on User's Feedback



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

Answer / amit

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

Is This Answer Correct ?    4 Yes 0 No

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

Answer / vishal

Also one can set global system variable "environ"
variable are stored in name=value pair.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix IPC Interview Questions

Predict the output of the following program code main() { fork(); printf("Hello World!"); }

3 Answers  


Explain what are the system calls used for process management?

1 Answers  


what is the very first process created by kernell

5 Answers  


Linking across directories?

2 Answers  


What are the system calls used for process management:

5 Answers  


About ln(linking)

1 Answers   Infosys,


What is daemon?

1 Answers  


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

2 Answers  


What is semaphone?

5 Answers   HCL,


What is the condition required for dead lock in unix system?

1 Answers  


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

1 Answers  


What is Inode.

2 Answers   HCL,


Categories