Example code from [K&R][chapter 5.5], string end compare.