blob: a3d95fe12afe9cfb75f98a88710497926366b91e [file] [log] [blame]
Johnny Chen49cb85d2011-11-28 21:39:07 +00001#include <stdio.h>
2
3int main(int argc, char const *argv[]) {
4 printf("Hello world.\n");
5 char line[100];
6 int count = 1;
7 while (fgets(line, sizeof(line), stdin)) { // Reading from stdin...
8 fprintf(stderr, "input line=>%d\n", count++);
9 }
10
11 printf("Exiting now\n");
12}