3 Fork of [Jason A. Donenfeld](mailto:Jason@zx2c4.com)'s [`cscript`](https://git.zx2c4.com/cscript/)
5 `c2run` executes C code from stdin using any variety of compiler arguments. It can be used from the command line:
8 $ echo 'main(){puts("hello world");}' | c2run
11 Or it can be used at the top of scripts:
15 main(){puts("hello world");}
18 One might even register .c as an executable file type:
21 # echo ':cfile:E::c::/usr/bin/c2run:' > /proc/sys/fs/binfmt_misc/register
22 $ echo 'main(){puts("hello world");}' > a.c
27 It respects the `CC` environment variable, and does not create any temporary dentries that need to be cleaned up ever.
33 $ sudo make install PREFIX=/usr
38 This project is released under the [GPLv2](COPYING).