This commit is contained in:
hexplor
2026-05-11 15:55:09 +02:00
parent 213293e530
commit b030981073
4 changed files with 18 additions and 1 deletions
BIN
View File
Binary file not shown.
+4 -1
View File
@@ -1,4 +1,4 @@
.PHONY: all clean fclean re .PHONY: all clean fclean re test
all: Colleen all: Colleen
@@ -15,3 +15,6 @@ fclean: clean
rm -f Colleen rm -f Colleen
re: fclean all re: fclean all
test:
./Colleen > tmp_Colleen ; diff tmp_Colleen Colleen.c
+14
View File
@@ -0,0 +1,14 @@
#include <stdio.h>
/* Le commentaire en dehores du programme */
void the_fonction_needed(void){
const char* str = "#include <stdio.h>%c/*%cLe commentaire en dehores du programme */%c%cvoid%cthe_fonction_needed(void){%c%cconst char* str = %c%s%c;%c%cprintf(str, 10, 9, 10, 10, 9, 10, 9, 34, str, 34, 10, 9, 10, 9, 10, 10, 10, 9,10, 9, 9, 10, 9, 10, 9, 10, 10);%c%creturn;%c}%c%cint%cmain(void){%c/*%cLA FONCTION PRINCIPALE%c*/%c%cthe_fonction_needed();%c%creturn 0;%c}%c";
printf(str, 10, 9, 10, 10, 9, 10, 9, 34, str, 34, 10, 9, 10, 9, 10, 10, 10, 9,10, 9, 9, 10, 9, 10, 9, 10, 10);
return;
}
int main(void){
/* LA FONCTION PRINCIPALE */
the_fonction_needed();
return 0;
}