blob: c9a5707f0e1758aec1dc0d4be1d0515b8f15305c [file] [log] [blame]
#include <stdio.h>
int main(int argc, char const *argv[]) {
printf("Hello world.\n"); // Set breakpoint here
char line[100];
if (fgets(line, sizeof(line), stdin)) {
fprintf(stdout, "input line to stdout: %s", line);
fprintf(stderr, "input line to stderr: %s", line);
}
if (fgets(line, sizeof(line), stdin)) {
fprintf(stdout, "input line to stdout: %s", line);
fprintf(stderr, "input line to stderr: %s", line);
}
if (fgets(line, sizeof(line), stdin)) {
fprintf(stdout, "input line to stdout: %s", line);
fprintf(stderr, "input line to stderr: %s", line);
}
printf("Exiting now\n");
}