diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-23 14:00:52 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-23 14:00:52 +0100 |
| commit | 6a3ef39feb635f529da9e36975ba77a26c1ff3b4 (patch) | |
| tree | 4a65630f27d0779a5bc3cce1927b13465d10b466 /userspace/simple.c | |
| parent | 608e66827d8aee1e55424c667777fac017501def (diff) | |
passing argv and argc to main, and fixed ELF load.
Diffstat (limited to 'userspace/simple.c')
| -rw-r--r-- | userspace/simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/userspace/simple.c b/userspace/simple.c index d4c48c2..5322584 100644 --- a/userspace/simple.c +++ b/userspace/simple.c @@ -1,12 +1,13 @@ int main(int argc, char **argv) { + int i; printf("argv: 0x%08X\n",argv); for(i=0;i<argc;i++) { - printf("param %i: %08X: %s\n",i,argv[i],argv[i]); + if(!strcmp(argv[i],"-v"))puts("version 1"); } puts("bye"); |
