add directory study
This commit is contained in:
10
study/linux-travel/MINIX-1.5/1.5/Source/commands/printenv.c
Normal file
10
study/linux-travel/MINIX-1.5/1.5/Source/commands/printenv.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/* printenv - print the current environment Author: Richard Todd */
|
||||
|
||||
main()
|
||||
{
|
||||
extern char **environ;
|
||||
char **sptr;
|
||||
for (sptr = environ; *sptr; ++sptr) {
|
||||
prints("%s\n", *sptr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user