1 #include <stdio.h> 2 main(int argc,char const * argv[])3int main(int argc, char const *argv[]) { 4 printf("Hello world.\n"); // Set break point at this line. 5 if (argc == 1) 6 return 0; 7 8 // Waiting to be attached by the debugger, otherwise. 9 char line[100]; 10 while (fgets(line, sizeof(line), stdin)) { // Waiting to be attached... 11 printf("input line=>%s\n", line); 12 } 13 14 printf("Exiting now\n"); 15 } 16