added sed command in makefile to concat quine

This commit is contained in:
asus
2024-01-25 18:40:37 +01:00
parent 805f3b695f
commit 65aac2c25a
4 changed files with 60 additions and 24 deletions

View File

@@ -2,16 +2,9 @@
comment outside
*/
#include <stdio.h>
char *second_function() {
return "/*%c comment outside%c*/%c#include <stdio.h>%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint main() {%c /*%c comment inside%c */%c char *program = second_function();%c printf(program, 10, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
}
int main() {
char *second_function() { return "/*%c comment outside%c*/%c#include <stdio.h>%cchar *second_function() { return %c%s%c; }%cint main() { char *program = second_function(); printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); return 0;%c /*%c comment inside%c */%c}%c"; }
int main() { char *program = second_function(); printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); return 0;
/*
comment inside
*/
char *program = second_function();
printf(program, 10, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);
return 0;
}