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