miguelangelgarcia

ShowEnvironmentVariables

May 10th, 2014
352
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char **argv, char** envp)
  4. {
  5.   char** env;
  6.   for (env = envp; *env != 0; env++)
  7.   {
  8.     char* thisEnv = *env;
  9.     printf("%s\n", thisEnv);    
  10.   }
  11.   return(0);
  12. }
RAW Paste Data