Modify getch/ungetch to only store one character.

Exercise 4-8.