K&R C Programs Exercise 7-2
Exercise 7-2. Write a program that will print arbitrary input in a sensible way. As a minimum it should print non-graphic characters in octal or hex (according to local custom), and fold long lines. The rules: Printable characters (isprint) pass through as-is \n resets the column counter; \t and other non-printable characters are shown as …