Files
quine_concept/Grace/C/Grace.c
2026-01-09 14:29:09 +01:00

9 lines
548 B
C

#include <stdio.h>
#define F "#include <stdio.h>%1$c#define F %2$c%3$s%2$c%1$c#define PF() fprintf(o, F, 10, 34, F);%1$c#define FT()int main(){FILE *o=fopen(%2$c./Grace_kid.c%2$c, %2$cw%2$c);PF() fclose(o);}%1$c/*%1$c This will call the main and the defined format, everything will be replaced in compile-time%1$c*/%1$cFT()%1$c"
#define PF() fprintf(o, F, 10, 34, F);
#define FT()int main(){FILE *o=fopen("./Grace_kid.c", "w");PF() fclose(o);}
/*
This will call the main and the defined format, everything will be replaced in compile-time
*/
FT()