3 ms·
Maybe I’m dumb, but how would you write cat or echo if you don’t have a “terrible editor”?
by rmetzler 7y ago
Maybe I’m dumb, but how would you write cat or echo if you don’t have a “terrible editor”?
- anthk 7y agogcc accepts compiling code from stdin. If not: >> echo.c << EOF #include <stdio.h> int main(){ while((c = getline()) != EOF){ putchar(c); } } EOF