5 int main(int argc
, char *argv
[])
11 openconsole(&dev_stdcon_r
, &dev_stdcon_w
);
13 printf("argv = %p\n", argv
);
14 for ( i
= 0 ; i
<= argc
; i
++ )
15 printf("argv[%d] = %p = \"%s\"\n", i
, argv
[i
], argv
[i
]);
18 fprintf(stderr
, "Missing file name!\n");
22 printf("File = %s\n", argv
[1]);
24 f
= fopen(argv
[1], "r");
25 while ( (ch
= getc(f
)) != EOF
)