diff options
Diffstat (limited to 'getenv_example.c')
| -rw-r--r-- | getenv_example.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/getenv_example.c b/getenv_example.c new file mode 100644 index 0000000..5a8dfa3 --- /dev/null +++ b/getenv_example.c @@ -0,0 +1,8 @@ +#include <stdio.h> +#include <stdlib.h> + +int main(int argc, const char *argv[]) +{ + printf("%s is at %p\n", argv[1], getenv(argv[1])); + return 0; +} |
