SHARE
TWEET

ShowEnvironmentVariables

miguelangelgarcia May 10th, 2014 337 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top