...
Code Block |
---|
main(int argc, char **argv[], char **envp[]) |
Wiki Markup |
---|
According to C99 \[[ISO/IEC 9899-1999:TC2|AA. C References#ISO/IEC 9899-1999TC2]\]: |
...
Code Block |
---|
extern char **environ; int main(int argc, char **argv[], char **envp[]) { printf("environ: %p\n", environ); printf("envp: %p\n", envp); putenv("MY_NEW_VAR=new_value", 1); puts("--Added MY_NEW_VAR--"); printf("environ: %p\n", environ); printf("envp: %p\n", envp); } |
...