Files
42_EXT_01_dr_quine/2_Grace/Grace.c
asus 25fadd05a0 - first step in grace : compile without main
- added makefile to keep tmp file
- added builds and executable in gitignore
2024-01-23 15:18:08 +01:00

15 lines
578 B
C

/*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;
}