Setting environment variables within a C program.

Jerry Bakin Bakin at HI-MULTICS.ARPA
Wed Apr 24 09:26:25 AEST 1985


Hi,
  I understand that if I type

 freds_wife = Wilma
 export fred_wife

from the shell, I can access freds_wife within a C program by using
getenv.

How do I change the value of freds_wife from Wilma to Betty within the C
program, and get the environment to understand the change later?

Jerry <Bakin at HI-Multics>



More information about the Comp.unix.wizards mailing list