C/stdlib.h/getenv
getenv: get environmental information by *name
<source lang="cpp">
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;*/
</source>