Skip to content

Commit

Permalink
printenv
Browse files Browse the repository at this point in the history
  • Loading branch information
kumail074 committed Nov 22, 2024
1 parent ac0b288 commit a29362b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions learning/processes/printenv.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <tlpi.h>

extern char **environ;

int main(int argc, char *argv[]) {
char **e;
for(e = environ; *e != NULL; e++)
puts(*e);

return 0;
}

0 comments on commit a29362b

Please sign in to comment.