some-usable-scripts/C_Language/environmentvariable.c

15 lines
224 B
C
Raw Normal View History

2011-02-20 18:52:23 +01:00
#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++;
}
}