📄 changeenv.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -