1 | #include <stdio.h> |
---|---|
2 | |
3 | int main(int argc, char const *argv[]) { |
4 | printf(format: "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(s: line, n: sizeof(line), stdin)) { // Waiting to be attached... |
11 | printf(format: "input line=>%s\n", line); |
12 | } |
13 | |
14 | printf(format: "Exiting now\n"); |
15 | } |
16 |