Example code from [K&R][chapter 5.3], string length.