source:
soft/tp8/correction/main.c
@
13
Last change on this file since 13 was 7, checked in by , 14 years ago | |
---|---|
File size: 240 bytes |
Line | |
---|---|
1 | |
2 | #include "stdio.h" |
3 | |
4 | int main() |
5 | { |
6 | volatile char byte; |
7 | char str[] = "\n hello world! \n"; |
8 | |
9 | while(1){ |
10 | tty_puts((void*)str); |
11 | tty_getc((void*)&byte); |
12 | if (byte == 'q') exit(); |
13 | } |
14 | exit(); |
15 | |
16 | } // end main |
Note: See TracBrowser
for help on using the repository browser.