linux c 获取头文件函数getenv

#include <stdio.h>
#include <stdlib.h>

int main()
{
printf("%s ", getenv("DOMAINID"));
return 0;
}

必须有头文件stdlib.h 

原文地址:https://www.cnblogs.com/chuanyang/p/6065258.html