c語言如何打印環境變量
- 心理
- 關注:1.15W次
system()函數 如system("path"),在C中打印環境變量。 path 命令見path /? 具體使用方法見下: <stdlib.h> int system(const char *s) system函數將字元串s傳遞給系統環境執行。如果s是NULL,如果存在命令處理器system返回非0。如果s非NULL,system返回的值與執行的環境相關。 參考資料:the C programming language
- 文章版權屬於文章作者所有,轉載請註明 https://rmnxw.com/zh-hant/lvse/xinli/19z2qd.html