Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 300 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 300 Bytes

Exercise 3-2

Write a function escape(s, t) that converts characters like newline and tab into visible escape sequences like \n and \t as it copies the string t to s. Use a switch.

Write a function for the other direction as well, converting escape sequences into the real characters.