Skip to content

Instantly share code, notes, and snippets.

@okertanov
Created April 13, 2013 11:18
Show Gist options
  • Save okertanov/5378007 to your computer and use it in GitHub Desktop.
Save okertanov/5378007 to your computer and use it in GitHub Desktop.
Shell script in ANSI C
/*/true
outname=${0%.*}
cc $0 -o ./outname && ./outname && rm -f ./outname ./outname.exe
exit 0
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
printf("Hello, World!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment