Declaration: char *getenv(const char *name); #include <stdlib.h> #include <stdio.h> int main(void){ printf("Path %s",getenv("PATH")); } /* Path C:\Java_Dev\sdk\djgpp\bin;*/