grace ok i think
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
/*comment outside*/
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define not_main main
|
#define not_main main
|
||||||
|
|
||||||
char *second_function() {
|
char *second_function() {
|
||||||
return "/*comment outside*/%c#include <stdio.h>%c#define not_main main%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint not_main() {%c /*comment inside*/%c char *program = second_function();%c printf(program, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
|
return "#include <stdio.h>%c#define not_main main%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint not_main() {%c /*comment*/%c FILE *file = fopen(%cGrace_kid.c%c, %cw%c);%c char *program = second_function();%c fprintf(file, program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 34, 34, 34, 34, 10, 10, 10, 10, 10);%c return 0;%c}%c";
|
||||||
}
|
}
|
||||||
|
|
||||||
int not_main() {
|
int not_main() {
|
||||||
/*comment inside*/
|
/*comment*/
|
||||||
|
FILE *file = fopen("Grace_kid.c", "w");
|
||||||
char *program = second_function();
|
char *program = second_function();
|
||||||
printf(program, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);
|
fprintf(file, program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 34, 34, 34, 34, 10, 10, 10, 10, 10);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
NAME = Grace
|
NAME = Grace
|
||||||
SRCS = Grace.c
|
SRCS = Grace.c
|
||||||
CLONE = $(NAME)_kid.c
|
CLONE = $(NAME)_kid.c
|
||||||
CREATE_CLONE = ./$(NAME) > $(CLONE)
|
CREATE_CLONE = ./$(NAME)
|
||||||
|
|
||||||
include ../MakefileCommon
|
include ../MakefileCommon
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user