programming-examples/c/Data_Input_Output/C Program to Print Environment Variables.c

13 lines
241 B
C
Raw Normal View History

2019-11-15 12:59:38 +01:00
/*
* C Program to Print Environment variables
*/
#include <stdio.h>
void main(int argc, char *argv[], char * envp[])
{
int i;
for (i = 0; envp[i] != NULL; i++)
{
printf("\n%s", envp[i]);
}
}