Code Snippets C

#include
#include
int main ()
{
char *p;
p = getenv ( "PATH" );
if (p != NULL)
printf ("Current path is: %s", p);
return 0;
}