Example code from [K&R][chapter 1.5.2]