some-usable-scripts/C_Language/printenv.c
2011-03-07 17:35:42 +01:00

15 lines
224 B
C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main( int argc, char **argv, char **envp)
{
// I will display all the environment variables
while(*envp != NULL)
{
printf("%s\n", *envp);
*envp++;
}
}