Last active
February 6, 2018 10:37
-
-
Save dolmen/fa5ea1da8bcbb47ac33b0e6dfded8449 to your computer and use it in GitHub Desktop.
C source runnable from shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///usr/bin/cc -o "${0%.c}" "$0" && exec "./${0%.c}" | |
// Author: Olivier Mengué | |
// Install: chmod u+x hello.c | |
#include <stdio.h> | |
int main() | |
{ | |
puts("hello world"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment