Introduce env.com

Handy tool for debugging environment issues.
This commit is contained in:
Jōshin 2023-12-04 00:02:35 -05:00
parent 2a3813c6cf
commit 6446a8b6a7
No known key found for this signature in database

10
examples/env.c Normal file
View 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;
}