-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome5.c
23 lines (17 loc) · 959 Bytes
/
welcome5.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
//Available functions: https://github.com/KilianKegel/toro-C-Library#implementation-status
int main(int argc, char **argv) {
int i = 0;
char string[] = {"Welcome, to the jungle\n"};
printf("simple Hello, world using putc() to stdout and stderr:\n");
do {
putc(string[i], stdout); // surprise, surpise: putc() does NOT write a character necessarily to STDOUT,
// but it can be forced to do so...
putc(string[i], stderr); // the Standard C standard allows 'putc()' to be implemnted as macro or function.
// toritoc's is compatible to LIBCMT.LIB
}while(string[i++]); // do as long as the string termination ZERO '\0' not appeares AND advance i by 1
// 1. Please notify the funny output
// 2. redirect the output of stdout to a file
// 3. Please notify the funny output
return 0;
}