环境变量相关函数: getenv()和putenv() 代码示例[Linux程序设计(4th)_4.2小节配套代码]: 程序功能:编写一个程序来打印所选的任意环境变量的值:如果给程序传递第二个参数,还设置环境变量的值// 1 The first few lines after the declaration of main ensure that the program, environ.c, has been called correctly. #include <stdlib.h> #in…