C:读取Windows操作系统的环境变量;
#include <stdlib.h>
#include <stdio.h>
int main(void){
char *pathvar;
pathvar = getenv("PATH");
printf("pathvar=%s",pathvar);
return 0;
}
#include <stdlib.h>
#include <stdio.h>
int main(void){
char *pathvar;
pathvar = getenv("PATH");
printf("pathvar=%s",pathvar);
return 0;
}