Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

gcc accepts compiling code from stdin.

If not:

     >> echo.c << EOF
     #include <stdio.h>
     int main(){
     while((c = getline()) != EOF){
          putchar(c);
     }
     }
     EOF


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: