Word Count

  /* nironment of process */ 
                                             
  /* patha =/usr/...*/                                                
  /*LOGNAME =*/              
                                         
  /* TERM =*/                                                                 
  /* FLAG=G -F*/                
                              
                                                            
                             
  /*this program will print all  environment variables that ir inerits from the environement */                                                                                                                                              
    int main(int argc,char *argv[],char *envp[])                           
        {                                                                           
   int i;                                                                     

    for(i=0;envp[i];i++)                                                           
        {                                                                           
      printf("\n %s",envp[i]);                                                



           }
         }                                                                              

Bookmark and Share

Done by Aarya