update
This commit is contained in:
Binary file not shown.
+4
-1
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user