Skip to content

Instantly share code, notes, and snippets.

@akkijp
Created October 20, 2015 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkijp/81d970b4e47dfac65ad2 to your computer and use it in GitHub Desktop.
Save akkijp/81d970b4e47dfac65ad2 to your computer and use it in GitHub Desktop.
自プロセスの環境変数を全て表示する
#include <stdio.h>
#include <stdlib.h>
extern char **environ;
int main(void){
char **p;
for(p=environ; *p; p++){
printf("%s\n", *p);
}
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment