getenv: get environmental information by *name : getenv « stdlib.h « C / ANSI-C






getenv: get environmental information by *name


    

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;*/         

           
       








Related examples in the same category