Solve Exercise 4-7: ungets()
Solve Exercise 4-8: Single character buffer