#include <stdio.h>
extern char** environ;
int main() {
char **var;
for (var = environ; *var; ++var)
printf("%s\n",*var);
return 0;
}
输出环境变量
最新推荐文章于 2024-08-26 09:44:52 发布
#include <stdio.h>
extern char** environ;
int main() {
char **var;
for (var = environ; *var; ++var)
printf("%s\n",*var);
return 0;
}