Linux C打印所有的环境变量
2024-09-05 04:21:18
#include <stdio.h> extern char** environ; int main()
{
int nIndex = ; for(nIndex = ; environ[nIndex] != NULL; nIndex++)
{
printf("%s\n",environ[nIndex]);
}
}
————————————————
版权声明:本文为CSDN博主「dmfrm」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u010889616/article/details/48133325
最新文章
- 11个审查Linux是否被入侵的方法
- K-均值聚类算法
- VC++6.0 配置CppUTest测试环境
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 解决办法
- Cornerstone 哪些错误
- JSON,JSONP
- 【CSS】盒模型+选择器(你选择的要操作的对象)
- 解决 mac ssh空闲 连接断开问题
- 在Raspberry配置优化安装LNMP环境总结
- C#生成缩略图不清晰模糊问题的解决方案!
- python---连接MySQL第四页
- 【Arduino】8地点LED数码管(3461BS)
- oracle Database Link
- Ant学习总结2
- Gitbucket—快速建立自己的Github
- 华为/华三交换机snmp配置
- [ZooKeeper] 2 环境搭建
- e2e 测试(1)
- post方式发送请求报文
- docker 错误:Error response from daemon: cannot stop container: connect: connection refused";: unknown