diff --git a/compiled_starters/c/app/main.c b/compiled_starters/c/app/main.c index 8a6c53f..9bb711b 100644 --- a/compiled_starters/c/app/main.c +++ b/compiled_starters/c/app/main.c @@ -6,6 +6,7 @@ int main(int argc, char *argv[]) { // Disable output buffering setbuf(stdout, NULL); + setbuf(stderr, NULL); // You can use print statements as follows for debugging, they'll be visible when running tests. printf("Logs from your program will appear here!\n"); diff --git a/solutions/c/01-je9/code/app/main.c b/solutions/c/01-je9/code/app/main.c index 2389b8f..11f570d 100644 --- a/solutions/c/01-je9/code/app/main.c +++ b/solutions/c/01-je9/code/app/main.c @@ -6,6 +6,7 @@ int main(int argc, char *argv[]) { // Disable output buffering setbuf(stdout, NULL); + setbuf(stderr, NULL); char *command = argv[3]; int child_pid = fork(); diff --git a/solutions/c/01-je9/diff/app/main.c.diff b/solutions/c/01-je9/diff/app/main.c.diff index 9126480..107e0fd 100644 --- a/solutions/c/01-je9/diff/app/main.c.diff +++ b/solutions/c/01-je9/diff/app/main.c.diff @@ -1,4 +1,4 @@ -@@ -1,32 +1,27 @@ +@@ -1,33 +1,28 @@ #include #include #include @@ -7,6 +7,7 @@ int main(int argc, char *argv[]) { // Disable output buffering setbuf(stdout, NULL); + setbuf(stderr, NULL); - // You can use print statements as follows for debugging, they'll be visible when running tests. - printf("Logs from your program will appear here!\n"); diff --git a/starter_templates/c/app/main.c b/starter_templates/c/app/main.c index 8a6c53f..9bb711b 100644 --- a/starter_templates/c/app/main.c +++ b/starter_templates/c/app/main.c @@ -6,6 +6,7 @@ int main(int argc, char *argv[]) { // Disable output buffering setbuf(stdout, NULL); + setbuf(stderr, NULL); // You can use print statements as follows for debugging, they'll be visible when running tests. printf("Logs from your program will appear here!\n");