/* unbuffered-copy.c */ #include int main() { char c; int n; while ((n = read(0, &c, 1)) > 0 ) write(1, &c, 1); /* note: no error checking */ return 0; }