I wrote a C program in Linux to set the values of environment variables using setenv, but after execution, when I run set or export, t
setenv
set
export
The environment variables are set within the context of your program.
When your program exits, you're back in the context from where your program was started.