Exercises for Kernighan and Ritchie