# | Line 115 | Line 115 | copycat(void) /* copy input to output */ | |
---|---|---|
115 | ||
116 | fflush(stdout); | |
117 | while ((n = fread(buf, 1, sizeof(buf), stdin)) > 0) | |
118 | < | if (writebuf(fileno(stdout), buf, n) != n) |
118 | > | if (writebuf(1, buf, n) != n) |
119 | break; | |
120 | } | |
121 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |