Rev 8629 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8629 | turbocat | 1 | #include |
2 | #include |
||
3 | #include |
||
4 | |||
8632 | turbocat | 5 | int main(int argc, char**argv) |
8629 | turbocat | 6 | { |
7 | char string[256]; |
||
8 | shell_cls(); |
||
8632 | turbocat | 9 | shell_printf("Number of arguments %d\n",argc); |
10 | for(int i=0; i |
||
11 | shell_printf("argv[%d]=%s\n", i, argv[i]); |
||
12 | } |
||
8629 | turbocat | 13 | shell_puts("This is a test console application for Shell\n\r"); |
14 | shell_puts("Type a string (255 symbols max): "); |
||
15 | shell_gets(string); |
||
16 | shell_puts("You typed:\n\r"); |
||
17 | shell_puts(string); |
||
18 | shell_puts("Press any key: "); |
||
19 | string[0] = shell_getc(); |
||
20 | shell_puts("\n\rYou pressed: "); |
||
21 | shell_putc(string[0]); |
||
22 | shell_exit(); |
||
23 | } |