That s a test, follows code,you have to insert the shortest correction into the space without touching anything away from it /* TO BE DONE START / / TO BE DONE END */ that makes those two files give the same output
The shortest code has to be less than 80 characters counting the "/* TO BE DONE START // TO BE DONE END */" string
hello0.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
my_printf(char*p){
char s[strlen(p)+1];
strcpy(s,p);
/*** TO BE DONE START ***//*** TO BE DONE END ***/
}
main(){
my_printf("hello world!");
my_printf("How are you?");
my_printf("i\'m OK, and you?");
my_printf("1, 2, 3, testing ...");
my_printf("bye bye!");
exit(0);
}
hello1.c
#include <stdio.h>
#include <stdlib.h>
main(){
printf("Hello world!\n");
printf("How are you?\n");
printf("I\'m OK, and you?\n"
"1, 2, 3, testing ...\n"
"Bye bye!\n");
exit(0);
}