new file structure according to subject
This commit is contained in:
10
C/1_Colleen/Colleen.c
Normal file
10
C/1_Colleen/Colleen.c
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
comment outside
|
||||
*/
|
||||
#include <stdio.h>
|
||||
char *second_function() { return "/*%c comment outside%c*/%c#include <stdio.h>%cchar *second_function() { return %c%s%c; }%cint main() { char *program = second_function(); printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); return 0;%c /*%c comment inside%c */%c}%c"; }
|
||||
int main() { char *program = second_function(); printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); return 0;
|
||||
/*
|
||||
comment inside
|
||||
*/
|
||||
}
|
||||
32
C/1_Colleen/Colleen_exploded.c
Normal file
32
C/1_Colleen/Colleen_exploded.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
comment outside
|
||||
*/
|
||||
#include <stdio.h>
|
||||
\
|
||||
char *second_function() \
|
||||
{ \
|
||||
return "\
|
||||
/*%c comment outside%c*/%c\
|
||||
#include <stdio.h>%c\
|
||||
char *second_function() \
|
||||
{ \
|
||||
return %c%s%c; \
|
||||
}%c\
|
||||
int main() \
|
||||
{ \
|
||||
char *program = second_function(); \
|
||||
printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); \
|
||||
return 0;%c \
|
||||
/*%c comment inside%c */%c\
|
||||
}%c\
|
||||
"; \
|
||||
}
|
||||
int main() \
|
||||
{ \
|
||||
char *program = second_function(); \
|
||||
printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10); \
|
||||
return 0;
|
||||
/*
|
||||
comment inside
|
||||
*/
|
||||
}
|
||||
6
C/1_Colleen/Makefile
Normal file
6
C/1_Colleen/Makefile
Normal file
@@ -0,0 +1,6 @@
|
||||
NAME = Colleen
|
||||
SRCS = Colleen.c
|
||||
CLONES = $(NAME)_kid.c
|
||||
CREATE_CLONE = ./$(NAME) > $(CLONES)
|
||||
|
||||
include ../MakefileCommon
|
||||
Reference in New Issue
Block a user