removed exploded files from gitignore

This commit is contained in:
asus
2024-01-26 11:53:44 +01:00
parent 57e4f2958e
commit ac37456160
4 changed files with 109 additions and 0 deletions

18
2_Grace/Grace_exploded.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#define xstr(s) #s
#define str(s) xstr(s)
#define MAIN(s) \
int main() \
{ \
char *before = "#include <stdio.h>\n#define xstr(s) #s\n#define str(s) xstr(s)\n#define MAIN(s) "; \
char *quine = s; \
char *after = "\n/*\n comment\n*/\nMAIN(str(MAIN(s)))\n"; \
FILE *file = fopen("Grace_kid.c", "w"); \
fprintf(file, "%s%s%s", before, quine, after); \
fclose(file); \
return 0; \
}
/*
comment
*/
MAIN(str(MAIN(s)))