K&R Exercises

Exercise 8-1: cat with system calls

Rewrite the program cat from Chapter 7 using read, write, open, and close instead of their standard library equivalents. Perform experiments to determine the relative speeds of the two versions.

Copy each file named as an argument, in order, to the standard output, or the standard input if there are none, byte for byte.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet