Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8622 | Boppan | 1 | #include |
2 | #include |
||
3 | #include |
||
4 | #include |
||
5 | |||
6 | int main(int argc, char** argv) |
||
7 | { |
||
8 | #ifdef _DYNAMIC |
||
9 | ksys_coff_etable_t *libc=_ksys_cofflib_load("/sys/lib/libc.obj"); |
||
10 | debug_printf = _ksys_cofflib_getproc(libc, "debug_printf"); |
||
11 | #endif |
||
12 | char test_stack[1000000]; |
||
13 | debug_printf("argc = %d\n", argc); |
||
14 | debug_printf("Argument array:\n"); |
||
15 | |||
16 | for(int i = 0; i < argc; i++) { |
||
17 | debug_printf("argv[%d] = %s\n", i, argv[i]); |
||
18 | } |
||
19 | debug_printf("Done!\n"); |
||
20 | return 0; |
||
21 | }> |