From 0d36b950f6a560a0312f2dcd326d3bb5362af370 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 24 Nov 2014 01:10:32 +0100 Subject: playing with enviroment variables --- userspace/simple.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'userspace/simple.c') diff --git a/userspace/simple.c b/userspace/simple.c index 5322584..bd42d9c 100644 --- a/userspace/simple.c +++ b/userspace/simple.c @@ -1,14 +1,23 @@ +#include + +extern char **environ; int main(int argc, char **argv) { - int i; printf("argv: 0x%08X\n",argv); + printf("env: 0x%08X\n",environ); + + putenv("test=11"); - for(i=0;i