Skip to content

kzoacn/Quine-embeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quine-embeder

Quine-embeder is a cpp code which can embed your C code into a C language quine program.

build and run

Build:

g++ embeder.cpp -o embeder -std=c++11

Run:

./embeder < C.in > my_quine.c
gcc my_quine.c -o my_quine
./my_quine 
diff my_quine.c tmp

Now my_quine.c is a quine which output itself to file tmp

Attention. The code in C.in have to look like this

/*your code*/
void function1(){/*your code*/}
void function2(){/*your code*/}

where function1 will be called before quine output and function2 will be called after.

About

Quine Builder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published