- first step in grace : compile without main
- added makefile to keep tmp file - added builds and executable in gitignore
This commit is contained in:
14
2_Grace/tmp_Grace.c
Normal file
14
2_Grace/tmp_Grace.c
Normal file
@@ -0,0 +1,14 @@
|
||||
/*comment outside*/
|
||||
#include <stdio.h>
|
||||
#define not_main main
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
int not_main() {
|
||||
/*comment inside*/
|
||||
char *program = second_function();
|
||||
printf(program, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user