changeenv.c
来自「unix linux 编程实践源代码」· C语言 代码 · 共 20 行
C
20 行
/* changeenv.c - shows how to change the environment * note: calls "env" to display its new settings */#include <stdio.h>extern char ** environ;main(){ char *table[3]; table[0] = "TERM=vt100"; /* fill the table */ table[1] = "HOME=/on/the/range"; table[2] = 0; environ = table; /* point to that table */ execlp("env", "env", NULL); /* exec a program */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?