Code: Select all
int main(void){
int l=1;
char buf[80];
while(l>0){l=read(0,buf,80);write(1,buf,l);}
}
basic usage;
Code: Select all
long|freaking|pipe |@ my comments | \
rest|of|pipe
Edit: it could be simplified to:
Code: Select all
int main(void){char s[80];while(write(1,s,read(0,s,80)));}