From 2c72c6970bf32e8d7e5ebb43c8347888a3425302 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 7 Mar 2011 17:35:42 +0100 Subject: [PATCH] I've just changed the name, it's more understandable --- C_Language/printenv.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 C_Language/printenv.c diff --git a/C_Language/printenv.c b/C_Language/printenv.c new file mode 100644 index 0000000..7f525cf --- /dev/null +++ b/C_Language/printenv.c @@ -0,0 +1,14 @@ +#include +#include +#include + +int main( int argc, char **argv, char **envp) +{ + // I will display all the environment variables + while(*envp != NULL) + { + printf("%s\n", *envp); + *envp++; + } +} +