i forgot the output in a file for grace, now it's ok :p

This commit is contained in:
asus
2024-01-24 10:28:36 +01:00
parent 777ccdb72b
commit 66af3c1b66
5 changed files with 25 additions and 8 deletions

6
3_Sully/Makefile Normal file
View File

@@ -0,0 +1,6 @@
NAME = Sully
SRCS = Sully.c
CLONE = $(NAME)_kid.c
CREATE_CLONE = ./$(NAME) > $(CLONE)
include ../MakefileCommon

View File

@@ -1 +1,15 @@
#include <stdio.h>
#define PRINT quine, 10, print, 10, 92, 10, 92, 10, 92, 10, 92, 10, 92, 10, 34, quine, 34, 92, 10, 92, 10, 92, 10, 10, 10, 10, 10
#define FT(...) int main(){\
/*\
comment\
*/\
char *print = #__VA_ARGS__;\
char *quine = "#include <stdio.h>%c#define PRINT %s%c#define FT(...) int main(){%c%c /*%c%c comment%c%c */%c%c char *print = #__VA_ARGS__;%c%c char *quine = %c%s%c;%c%c printf(PRINT);%c%c return 0;%c%c}%c#define FFT(...) FT(__VA_ARGS__)%c%cFFT(PRINT)%c";\
printf(PRINT);\
return 0;\
}
#define FFT(...) FT(__VA_ARGS__)
FFT(PRINT)