Exercise 5-4 strend(s,t) K & R