source:
soft/tp8/correction/main.c
@
32
| Last change on this file since 32 was 7, checked in by , 15 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.
![(please configure the [header_logo] section in trac.ini)](/trac/giet-vm/chrome/site/your_project_logo.png)