记忆力不好,老是忘记,记录下:
char *pathvar; pathvar = getenv("PATH");
windows获取环境变量
原文:http://www.cnblogs.com/whiteIcrow/p/dark_crow.html