Code examples from Stephen Prata's "C Primer Plus", 4th Edition