char* getenv (const char* name);
123456789101112
/* getenv example: getting path */ #include <stdio.h> /* printf */ #include <stdlib.h> /* getenv */ int main () { char* pPath; pPath = getenv ("PATH"); if (pPath!=NULL) printf ("The current path is: %s",pPath); return 0; }