Skip to content

Commit 5ee98f7

Browse files
Create DisplayLinuxEnvirmentVariables.c
Program to Display Linux and Mac Environment Variables
1 parent da0fb2e commit 5ee98f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DisplayLinuxEnvirmentVariables.c

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdio.h>
2+
3+
int main(int argc, char **argv, char **environ){
4+
int i = -1;
5+
6+
while (environ[++i])
7+
printf("%s\n",environ[i]);
8+
}

0 commit comments

Comments
 (0)