// copy stdin to stdout byte-by-byte using read/write // // will probably be slow due to system calls with no buffering // #include int main( void) { unsigned char c; while( read(0,&c,1) == 1) write(1,&c,1); }