getenv : getenv « stdlib.h « C Tutorial






ItemValue
Header filestdlib.h
Declarationchar *getenv(const char *name);
Returnenvironmental information by *name.


If a call is made to getenv() with an argument that does not match any of the environment data, a null pointer is returned.

#include <stdlib.h>
#include <stdio.h>

int main(void){
  printf("Path %s",getenv("PATH"));
}
Path C:\Java_Dev\sdk\djgpp\bin;








23.14.getenv
23.14.1.getenv