mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +00:00
Introduce env.com
Handy tool for debugging environment issues.
This commit is contained in:
parent
2a3813c6cf
commit
6446a8b6a7
1 changed files with 10 additions and 0 deletions
10
examples/env.c
Normal file
10
examples/env.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
printf("%s\n", argv[0]);
|
||||
for (char **p = environ; *p; ++p) {
|
||||
printf(" %s\n", *p);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue