source:
mainline/uspace/dist/src/c/demos/hello/hello.c
Last change on this file was c0cef6f9, checked in by , 7 years ago | |
---|---|
|
|
File size: 265 bytes |
Rev | Line | |
---|---|---|
[c0cef6f9] | 1 | typedef int errno_t; |
[b7fd2a0] | 2 | extern errno_t putchar(char); |
[3508000] | 3 | |
4 | #define TERMINATOR '!' | |
5 | ||
[1433ecda] | 6 | int main(void) |
7 | { | |
[3508000] | 8 | /* Prints "hello" to the standard output. */ |
9 | putchar('h'); | |
10 | putchar('e'); | |
11 | putchar('l'); | |
12 | putchar('l'); | |
13 | putchar('o'); | |
14 | putchar(TERMINATOR); | |
15 | putchar('\n'); | |
16 | return 0; | |
17 | } |
Note:
See TracBrowser
for help on using the repository browser.