当前位置: 技术问答>linux和unix
关于getenv库函数,请解释,谢谢
来源: 互联网 发布时间:2015-02-18
本文导语: 顺便告诉我这个函数是在那个头文件声明的,谢谢 | NAME getenv - get an environment variable SYNOPSIS #include char *getenv(const char *name); DESCRIPTION The getenv() functi...
顺便告诉我这个函数是在那个头文件声明的,谢谢
|
NAME
getenv - get an environment variable
SYNOPSIS
#include
char *getenv(const char *name);
DESCRIPTION
The getenv() function searches the environment list for a string that matches the
string pointed to by name. The strings are of the form name = value.
RETURN VALUE
The getenv() function returns a pointer to the value in the environment, or NULL if
there is no match.